Isolate "server-side" multiplayer rooms in testing

This commit is contained in:
Dan Balasescu
2022-06-03 19:17:31 +09:00
parent 538ad1bc98
commit 646f5f0f33
2 changed files with 12 additions and 5 deletions

View File

@ -162,6 +162,13 @@ namespace osu.Game.Online.Rooms
Password.BindValueChanged(p => HasPassword.Value = !string.IsNullOrEmpty(p.NewValue));
}
/// <summary>
/// Copies values from another <see cref="Room"/> into this one.
/// </summary>
/// <remarks>
/// **Beware**: This will store references between <see cref="Room"/>s.
/// </remarks>
/// <param name="other">The <see cref="Room"/> to copy values from.</param>
public void CopyFrom(Room other)
{
RoomID.Value = other.RoomID.Value;