mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Remove SliderCurve.Offset (unused)
This commit is contained in:
parent
6310c183fa
commit
8b36d9b482
@ -18,8 +18,6 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
|
|
||||||
public CurveType CurveType = CurveType.PerfectCurve;
|
public CurveType CurveType = CurveType.PerfectCurve;
|
||||||
|
|
||||||
public Vector2 Offset;
|
|
||||||
|
|
||||||
private readonly List<Vector2> calculatedPath = new List<Vector2>();
|
private readonly List<Vector2> calculatedPath = new List<Vector2>();
|
||||||
private readonly List<double> cumulativeLength = new List<double>();
|
private readonly List<double> cumulativeLength = new List<double>();
|
||||||
|
|
||||||
@ -187,12 +185,12 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
for (; i < calculatedPath.Count && cumulativeLength[i] < d0; ++i) { }
|
for (; i < calculatedPath.Count && cumulativeLength[i] < d0; ++i) { }
|
||||||
|
|
||||||
path.Add(interpolateVertices(i, d0) + Offset);
|
path.Add(interpolateVertices(i, d0));
|
||||||
|
|
||||||
for (; i < calculatedPath.Count && cumulativeLength[i] <= d1; ++i)
|
for (; i < calculatedPath.Count && cumulativeLength[i] <= d1; ++i)
|
||||||
path.Add(calculatedPath[i] + Offset);
|
path.Add(calculatedPath[i]);
|
||||||
|
|
||||||
path.Add(interpolateVertices(i, d1) + Offset);
|
path.Add(interpolateVertices(i, d1));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -207,7 +205,7 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
Calculate();
|
Calculate();
|
||||||
|
|
||||||
double d = progressToDistance(progress);
|
double d = progressToDistance(progress);
|
||||||
return interpolateVertices(indexOfDistance(d), d) + Offset;
|
return interpolateVertices(indexOfDistance(d), d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user