mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 00:43:25 +08:00
We don't need a curve.
This commit is contained in:
parent
6101fe98e1
commit
231b1ae610
@ -18,21 +18,15 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private const float base_scoring_distance = 100;
|
private const float base_scoring_distance = 100;
|
||||||
|
|
||||||
public readonly SliderCurve Curve = new SliderCurve();
|
|
||||||
|
|
||||||
public List<Vector2> ControlPoints { get; set; }
|
public List<Vector2> ControlPoints { get; set; }
|
||||||
public CurveType CurveType { get; set; }
|
public CurveType CurveType { get; set; }
|
||||||
|
|
||||||
public double Distance
|
public double Distance { get; set; }
|
||||||
{
|
|
||||||
get { return Curve.Distance; }
|
|
||||||
set { Curve.Distance = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<SampleInfoList> RepeatSamples { get; set; }
|
public List<SampleInfoList> RepeatSamples { get; set; }
|
||||||
public int RepeatCount { get; set; } = 1;
|
public int RepeatCount { get; set; } = 1;
|
||||||
|
|
||||||
public double EndTime => StartTime + RepeatCount * Curve.Distance / Velocity;
|
public double EndTime => StartTime + RepeatCount * Distance / Velocity;
|
||||||
public double Duration => EndTime - StartTime;
|
public double Duration => EndTime - StartTime;
|
||||||
|
|
||||||
public double Velocity;
|
public double Velocity;
|
||||||
|
Loading…
Reference in New Issue
Block a user