mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Isolate client's LocalUser from TestMultiplayerClient
This commit is contained in:
parent
b64c0d011c
commit
37acec1952
@ -56,6 +56,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
public new MultiplayerRoom Room => throw new InvalidOperationException($"Accessing the client-side room via {nameof(TestMultiplayerClient)} is unsafe. "
|
||||
+ $"Use {nameof(ClientRoom)} if this was intended.");
|
||||
|
||||
public new MultiplayerRoomUser? LocalUser => ServerRoom?.Users.SingleOrDefault(u => u.User?.Id == API.LocalUser.Value.Id);
|
||||
|
||||
public Action<MultiplayerRoom>? RoomSetupAction;
|
||||
|
||||
public bool RoomJoined { get; private set; }
|
||||
|
Loading…
Reference in New Issue
Block a user