1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Improve legibility of RulesetInfo.Equals

This commit is contained in:
Dean Herbert 2022-01-10 13:08:44 +09:00
parent fa7dddcf3c
commit 82259ee072

View File

@ -47,7 +47,11 @@ namespace osu.Game.Rulesets
public bool Available { get; set; }
public bool Equals(RulesetInfo? other) => other != null && OnlineID == other.OnlineID && Available == other.Available && Name == other.Name && InstantiationInfo == other.InstantiationInfo;
public bool Equals(RulesetInfo? other) => other != null
&& OnlineID == other.OnlineID
&& Available == other.Available
&& Name == other.Name
&& InstantiationInfo == other.InstantiationInfo;
public bool Equals(IRulesetInfo? other) => other is RulesetInfo b && Equals(b);