1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 05:50:05 +08:00
osu-lazer/osu.Game/Tests/Visual/RealtimeMultiplayer/TestRealtimeRoomContainer.cs

41 lines
1.3 KiB
C#
Raw Normal View History

2020-12-19 00:19:08 +08: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.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.RealtimeMultiplayer;
2020-12-21 17:42:23 +08:00
using osu.Game.Screens.Multi;
2020-12-19 00:19:08 +08:00
using osu.Game.Screens.Multi.Lounge.Components;
namespace osu.Game.Tests.Visual.RealtimeMultiplayer
{
public class TestRealtimeRoomContainer : Container
{
protected override Container<Drawable> Content => content;
private readonly Container content;
[Cached(typeof(StatefulMultiplayerClient))]
public readonly TestRealtimeMultiplayerClient Client;
2020-12-21 17:42:23 +08:00
[Cached(typeof(IRoomManager))]
2020-12-19 00:19:08 +08:00
public readonly TestRealtimeRoomManager RoomManager;
[Cached]
public readonly Bindable<FilterCriteria> Filter = new Bindable<FilterCriteria>(new FilterCriteria());
public TestRealtimeRoomContainer()
{
RelativeSizeAxes = Axes.Both;
AddRangeInternal(new Drawable[]
{
Client = new TestRealtimeMultiplayerClient(),
RoomManager = new TestRealtimeRoomManager(),
content = new Container { RelativeSizeAxes = Axes.Both }
});
}
}
}