mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 22:12:53 +08:00
Throw NotSupportedException instead
This commit is contained in:
parent
f5edad16e6
commit
daf5fa9da4
@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
public double EndTime
|
public double EndTime
|
||||||
{
|
{
|
||||||
get => StartTime + this.SpanCount() * Path.Distance / Velocity;
|
get => StartTime + this.SpanCount() * Path.Distance / Velocity;
|
||||||
set => throw new System.NotImplementedException();
|
set => throw new System.NotSupportedException($"Adjust via {nameof(RepeatCount)} instead"); // can be implemented if/when needed.
|
||||||
}
|
}
|
||||||
|
|
||||||
public float EndX => X + this.CurvePositionAt(1).X / CatchPlayfield.BASE_WIDTH;
|
public float EndX => X + this.CurvePositionAt(1).X / CatchPlayfield.BASE_WIDTH;
|
||||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Osu.Objects
|
|||||||
public double EndTime
|
public double EndTime
|
||||||
{
|
{
|
||||||
get => StartTime + this.SpanCount() * Path.Distance / Velocity;
|
get => StartTime + this.SpanCount() * Path.Distance / Velocity;
|
||||||
set => throw new System.NotImplementedException();
|
set => throw new System.NotSupportedException($"Adjust via {nameof(RepeatCount)} instead"); // can be implemented if/when needed.
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Duration => EndTime - StartTime;
|
public double Duration => EndTime - StartTime;
|
||||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
public double EndTime
|
public double EndTime
|
||||||
{
|
{
|
||||||
get => StartTime + this.SpanCount() * Distance / Velocity;
|
get => StartTime + this.SpanCount() * Distance / Velocity;
|
||||||
set => throw new System.NotImplementedException();
|
set => throw new System.NotSupportedException($"Adjust via {nameof(RepeatCount)} instead"); // can be implemented if/when needed.
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Duration => EndTime - StartTime;
|
public double Duration => EndTime - StartTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user