Make Path.Distance a property again

This commit is contained in:
smoogipoo
2018-11-12 14:07:48 +09:00
parent 3b88d94793
commit 3aba462e52
4 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@ namespace osu.Game.Rulesets.Osu.Objects
public event Action<SliderPath> PathChanged;
public double EndTime => StartTime + this.SpanCount() * Path.GetDistance() / Velocity;
public double EndTime => StartTime + this.SpanCount() * Path.Distance / Velocity;
public double Duration => EndTime - StartTime;
public Vector2 StackedPositionAt(double t) => StackedPosition + this.CurvePositionAt(t);
@ -68,7 +68,7 @@ namespace osu.Game.Rulesets.Osu.Objects
}
}
public double Distance => Path.GetDistance();
public double Distance => Path.Distance;
public override Vector2 Position
{
@ -178,7 +178,7 @@ namespace osu.Game.Rulesets.Osu.Objects
private void createTicks()
{
var length = Path.GetDistance();
var length = Path.Distance;
var tickDistance = MathHelper.Clamp(TickDistance, 0, length);
if (tickDistance == 0) return;