mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Improve legibility of RulesetInfo.Equals
This commit is contained in:
parent
fa7dddcf3c
commit
82259ee072
@ -47,7 +47,11 @@ namespace osu.Game.Rulesets
|
|||||||
|
|
||||||
public bool Available { get; set; }
|
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);
|
public bool Equals(IRulesetInfo? other) => other is RulesetInfo b && Equals(b);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user