mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08: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. "
|
public new MultiplayerRoom Room => throw new InvalidOperationException($"Accessing the client-side room via {nameof(TestMultiplayerClient)} is unsafe. "
|
||||||
+ $"Use {nameof(ClientRoom)} if this was intended.");
|
+ $"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 Action<MultiplayerRoom>? RoomSetupAction;
|
||||||
|
|
||||||
public bool RoomJoined { get; private set; }
|
public bool RoomJoined { get; private set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user