1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 13:42:59 +08:00

Add QueueingMode to MultiplayerRoomSettings

This commit is contained in:
smoogipoo 2021-10-14 23:24:01 +09:00
parent 2784ba1423
commit 6f89e30f56

View File

@ -43,6 +43,9 @@ namespace osu.Game.Online.Multiplayer
[Key(8)]
public MatchType MatchType { get; set; } = MatchType.HeadToHead;
[Key(9)]
public QueueingModes QueueingMode { get; set; } = QueueingModes.Host;
public bool Equals(MultiplayerRoomSettings other)
=> BeatmapID == other.BeatmapID
&& BeatmapChecksum == other.BeatmapChecksum
@ -52,7 +55,8 @@ namespace osu.Game.Online.Multiplayer
&& Password.Equals(other.Password, StringComparison.Ordinal)
&& Name.Equals(other.Name, StringComparison.Ordinal)
&& PlaylistItemId == other.PlaylistItemId
&& MatchType == other.MatchType;
&& MatchType == other.MatchType
&& QueueingMode == other.QueueingMode;
public override string ToString() => $"Name:{Name}"
+ $" Beatmap:{BeatmapID} ({BeatmapChecksum})"
@ -61,6 +65,7 @@ namespace osu.Game.Online.Multiplayer
+ $" Password:{(string.IsNullOrEmpty(Password) ? "no" : "yes")}"
+ $" Ruleset:{RulesetID}"
+ $" Type:{MatchType}"
+ $" Item:{PlaylistItemId}";
+ $" Item:{PlaylistItemId}"
+ $" Queue:{QueueingMode}";
}
}