1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 00:53:19 +08:00

Add ToString implementation to MultiplayerRoom for easier debug

This commit is contained in:
Dean Herbert 2020-12-09 14:47:26 +09:00
parent c92c2cbfc0
commit e09715d71e

View File

@ -50,5 +50,7 @@ namespace osu.Game.Online.RealtimeMultiplayer
/// Request a lock on this room to perform a thread-safe update.
/// </summary>
public LockUntilDisposal LockForUpdate() => new LockUntilDisposal(writeLock);
public override string ToString() => $"RoomID:{RoomID} Host:{Host?.UserID} Users:{Users.Count} State:{State} Settings: [{Settings}]";
}
}