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

@ -103,5 +103,7 @@ namespace osu.Game.Online.API.Requests.Responses
public string Hash => throw new NotImplementedException();
#endregion
public bool Equals(IBeatmapInfo? other) => other is APIBeatmap b && Equals(b);
}
}

View File

@ -141,5 +141,7 @@ namespace osu.Game.Online.API.Requests.Responses
double IBeatmapSetInfo.MaxBPM => BPM;
#endregion
public bool Equals(IBeatmapSetInfo? other) => other is APIBeatmapSet b && Equals(b);
}
}