2019-01-24 08:43:03 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-12-27 04:30:36 +00:00
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Online.Multiplayer;
|
|
|
|
using osu.Game.Online.Multiplayer.RoomStatuses;
|
|
|
|
using osu.Game.Screens.Multi.Lounge.Components;
|
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
2018-12-27 04:30:36 +00:00
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
public class TestSceneRoomStatus : OsuTestScene
|
2018-12-27 04:30:36 +00:00
|
|
|
{
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
{
|
|
|
|
typeof(RoomStatusEnded),
|
|
|
|
typeof(RoomStatusOpen),
|
|
|
|
typeof(RoomStatusPlaying)
|
|
|
|
};
|
|
|
|
|
2019-05-14 19:37:25 +00:00
|
|
|
public TestSceneRoomStatus()
|
2018-12-27 04:30:36 +00:00
|
|
|
{
|
|
|
|
Child = new FillFlowContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Width = 0.5f,
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
|
|
|
Name = { Value = "Room 1" },
|
|
|
|
Status = { Value = new RoomStatusOpen() }
|
|
|
|
}),
|
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
|
|
|
Name = { Value = "Room 2" },
|
|
|
|
Status = { Value = new RoomStatusPlaying() }
|
|
|
|
}),
|
|
|
|
new DrawableRoom(new Room
|
|
|
|
{
|
|
|
|
Name = { Value = "Room 3" },
|
|
|
|
Status = { Value = new RoomStatusEnded() }
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|