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
1 changed files with 7 additions and 2 deletions

View File

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