mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Add IBeatmapSetInfo
equality support
This commit is contained in:
@ -141,5 +141,17 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
double IBeatmapSetInfo.MaxBPM => BPM;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Implementation of IEquatable<IBeatmapSetInfo>
|
||||
|
||||
public bool Equals(IBeatmapSetInfo? other)
|
||||
{
|
||||
if (OnlineID > 0 && other?.OnlineID > 0)
|
||||
return other.OnlineID == OnlineID;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user