mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Use .Equals everywhere
This commit is contained in:
parent
9f85c55915
commit
aea50e770b
@ -21,6 +21,6 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
public override bool Equals(ControlPoint other)
|
||||
=> base.Equals(other)
|
||||
&& other is DifficultyControlPoint difficulty
|
||||
&& SpeedMultiplier == difficulty.SpeedMultiplier;
|
||||
&& SpeedMultiplier.Equals(difficulty.SpeedMultiplier);
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
public override bool Equals(ControlPoint other)
|
||||
=> base.Equals(other)
|
||||
&& other is EffectControlPoint effect
|
||||
&& KiaiMode == effect.KiaiMode
|
||||
&& OmitFirstBarLine == effect.OmitFirstBarLine;
|
||||
&& KiaiMode.Equals(effect.KiaiMode)
|
||||
&& OmitFirstBarLine.Equals(effect.OmitFirstBarLine);
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
public override bool Equals(ControlPoint other)
|
||||
=> base.Equals(other)
|
||||
&& other is SampleControlPoint sample
|
||||
&& SampleBank == sample.SampleBank
|
||||
&& SampleVolume == sample.SampleVolume;
|
||||
&& SampleBank.Equals(sample.SampleBank)
|
||||
&& SampleVolume.Equals(sample.SampleVolume);
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
public override bool Equals(ControlPoint other)
|
||||
=> base.Equals(other)
|
||||
&& other is TimingControlPoint timing
|
||||
&& TimeSignature == timing.TimeSignature
|
||||
&& BeatLength == timing.beatLength;
|
||||
&& TimeSignature.Equals(timing.TimeSignature)
|
||||
&& BeatLength.Equals(timing.BeatLength);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user