mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 01:33:15 +08:00
Add AllowedMods to MultiplayerRoomSettings model
This commit is contained in:
parent
4c256f1fb3
commit
c408b46a21
@ -25,13 +25,21 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
[NotNull]
|
[NotNull]
|
||||||
public IEnumerable<APIMod> Mods { get; set; } = Enumerable.Empty<APIMod>();
|
public IEnumerable<APIMod> Mods { get; set; } = Enumerable.Empty<APIMod>();
|
||||||
|
|
||||||
|
[NotNull]
|
||||||
|
public IEnumerable<APIMod> AllowedMods { get; set; } = Enumerable.Empty<APIMod>();
|
||||||
|
|
||||||
public bool Equals(MultiplayerRoomSettings other)
|
public bool Equals(MultiplayerRoomSettings other)
|
||||||
=> BeatmapID == other.BeatmapID
|
=> BeatmapID == other.BeatmapID
|
||||||
&& BeatmapChecksum == other.BeatmapChecksum
|
&& BeatmapChecksum == other.BeatmapChecksum
|
||||||
&& Mods.SequenceEqual(other.Mods)
|
&& Mods.SequenceEqual(other.Mods)
|
||||||
|
&& AllowedMods.SequenceEqual(other.AllowedMods)
|
||||||
&& RulesetID == other.RulesetID
|
&& RulesetID == other.RulesetID
|
||||||
&& Name.Equals(other.Name, StringComparison.Ordinal);
|
&& Name.Equals(other.Name, StringComparison.Ordinal);
|
||||||
|
|
||||||
public override string ToString() => $"Name:{Name} Beatmap:{BeatmapID} ({BeatmapChecksum}) Mods:{string.Join(',', Mods)} Ruleset:{RulesetID}";
|
public override string ToString() => $"Name:{Name}"
|
||||||
|
+ $" Beatmap:{BeatmapID} ({BeatmapChecksum})"
|
||||||
|
+ $" Mods:{string.Join(',', Mods)}"
|
||||||
|
+ $" AllowedMods:{string.Join(',', AllowedMods)}"
|
||||||
|
+ $" Ruleset:{RulesetID}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user