Simplify AutoStart and Host checks

This commit is contained in:
Dean Herbert
2022-03-25 15:41:01 +09:00
parent de4c04ef80
commit b1f0f89fdd
4 changed files with 10 additions and 8 deletions

View File

@ -31,6 +31,8 @@ namespace osu.Game.Online.Multiplayer
[Key(5)]
public TimeSpan AutoStartDuration { get; set; }
public bool AutoStartEnabled => AutoStartDuration != TimeSpan.Zero;
public bool Equals(MultiplayerRoomSettings? other)
{
if (ReferenceEquals(this, other)) return true;