Implement and use equality comparers for ControlPoint

This commit is contained in:
smoogipoo
2018-06-28 18:08:46 +09:00
parent 8242236ddf
commit 2882981f9c
6 changed files with 82 additions and 30 deletions

View File

@ -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;
}
}