mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Add back interface equality but limit to only matching types
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user