From e09715d71efe23bdedf5a6b7718e6bdbe4ef2258 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 9 Dec 2020 14:47:26 +0900 Subject: [PATCH] Add ToString implementation to MultiplayerRoom for easier debug --- osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs b/osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs index 24c20bded4..1ba8d0c487 100644 --- a/osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs +++ b/osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs @@ -50,5 +50,7 @@ public MultiplayerRoom(in long roomId) /// Request a lock on this room to perform a thread-safe update. /// public LockUntilDisposal LockForUpdate() => new LockUntilDisposal(writeLock); + + public override string ToString() => $"RoomID:{RoomID} Host:{Host?.UserID} Users:{Users.Count} State:{State} Settings: [{Settings}]"; } }