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

@ -14,5 +14,11 @@ namespace osu.Game.Beatmaps.ControlPoints
/// Whether the first bar line of this control point is ignored.
/// </summary>
public bool OmitFirstBarLine;
public override bool Equals(ControlPoint other)
=> base.Equals(other)
&& other is EffectControlPoint effect
&& KiaiMode == effect.KiaiMode
&& OmitFirstBarLine == effect.OmitFirstBarLine;
}
}