mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Implement and use equality comparers for ControlPoint
This commit is contained in:
@ -30,5 +30,11 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
Name = sampleName,
|
||||
Volume = SampleVolume,
|
||||
};
|
||||
|
||||
public override bool Equals(ControlPoint other)
|
||||
=> base.Equals(other)
|
||||
&& other is SampleControlPoint sample
|
||||
&& SampleBank == sample.SampleBank
|
||||
&& SampleVolume == sample.SampleVolume;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user