Replace local Equatable implementations with abstract EquivalentTo

This commit is contained in:
Dean Herbert
2019-10-25 17:00:56 +09:00
parent 5a70431263
commit e2f2638212
6 changed files with 28 additions and 28 deletions

View File

@ -189,7 +189,7 @@ namespace osu.Game.Beatmaps.Formats
Foreground = 3
}
internal class LegacySampleControlPoint : SampleControlPoint, IEquatable<LegacySampleControlPoint>
internal class LegacySampleControlPoint : SampleControlPoint
{
public int CustomSampleBank;
@ -203,9 +203,9 @@ namespace osu.Game.Beatmaps.Formats
return baseInfo;
}
public bool Equals(LegacySampleControlPoint other)
=> base.Equals(other)
&& CustomSampleBank == other?.CustomSampleBank;
public override bool EquivalentTo(ControlPoint other) =>
base.EquivalentTo(other)
&& CustomSampleBank == ((LegacySampleControlPoint)other).CustomSampleBank;
}
}
}