Throw NotSupportedException instead

This commit is contained in:
Dean Herbert 2020-02-06 13:16:32 +09:00
parent f5edad16e6
commit daf5fa9da4
3 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ protected override void CreateNestedHitObjects()
public double EndTime
{
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;

View File

@ -21,7 +21,7 @@ public class Slider : OsuHitObject, IHasCurve
public double EndTime
{
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;

View File

@ -29,7 +29,7 @@ internal abstract class ConvertSlider : HitObject, IHasCurve, IHasLegacyLastTick
public double EndTime
{
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;