Add back interface equality but limit to only matching types

This commit is contained in:
Dean Herbert
2021-11-16 12:25:37 +09:00
parent 1988b263c6
commit 9207b87b76
8 changed files with 15 additions and 2 deletions

View File

@ -78,6 +78,8 @@ namespace osu.Game.Beatmaps
return false;
}
public bool Equals(IBeatmapSetInfo other) => other is BeatmapSetInfo b && Equals(b);
#region Implementation of IHasOnlineID
int IHasOnlineID<int>.OnlineID => OnlineID ?? -1;