mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Add realtime multiplayer test scene
This commit is contained in:
parent
8427ee1b8e
commit
56bd3d8a82
@ -0,0 +1,23 @@
|
|||||||
|
// 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.Game.Screens.Multi.Components;
|
||||||
|
|
||||||
|
namespace osu.Game.Tests.Visual.RealtimeMultiplayer
|
||||||
|
{
|
||||||
|
public class TestSceneRealtimeMultiplayer : RealtimeMultiplayerTestScene
|
||||||
|
{
|
||||||
|
public TestSceneRealtimeMultiplayer()
|
||||||
|
{
|
||||||
|
var multi = new TestRealtimeMultiplayer();
|
||||||
|
|
||||||
|
AddStep("show", () => LoadScreen(multi));
|
||||||
|
AddUntilStep("wait for loaded", () => multi.IsLoaded);
|
||||||
|
}
|
||||||
|
|
||||||
|
private class TestRealtimeMultiplayer : Screens.Multi.RealtimeMultiplayer.RealtimeMultiplayer
|
||||||
|
{
|
||||||
|
protected override RoomManager CreateRoomManager() => new TestRealtimeRoomManager();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user