1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 04:12:55 +08:00

Make sMake spinner's EndTime correct on construction

This commit is contained in:
Dean Herbert 2020-02-07 19:08:37 +09:00
parent 71ba3e459b
commit 6297606baa

View File

@ -13,8 +13,13 @@ namespace osu.Game.Rulesets.Osu.Objects
{ {
public class Spinner : OsuHitObject, IHasEndTime public class Spinner : OsuHitObject, IHasEndTime
{ {
public double EndTime { get; set; } public double EndTime
public double Duration => EndTime - StartTime; {
get => StartTime + Duration;
set => Duration = value - StartTime;
}
public double Duration { get; set; }
/// <summary> /// <summary>
/// Number of spins required to finish the spinner without miss. /// Number of spins required to finish the spinner without miss.