mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move sett from EndTime to Duration
This commit is contained in:
@ -26,13 +26,13 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
||||
public List<IList<HitSampleInfo>> NodeSamples { get; set; }
|
||||
public int RepeatCount { get; set; }
|
||||
|
||||
public double EndTime
|
||||
public double Duration
|
||||
{
|
||||
get => StartTime + this.SpanCount() * Distance / Velocity;
|
||||
get => this.SpanCount() * Distance / Velocity;
|
||||
set => throw new System.NotSupportedException($"Adjust via {nameof(RepeatCount)} instead"); // can be implemented if/when needed.
|
||||
}
|
||||
|
||||
public double Duration => EndTime - StartTime;
|
||||
public double EndTime => StartTime + Duration;
|
||||
|
||||
public double Velocity = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user