mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Remove start/end index.
This commit is contained in:
parent
7efa3415a4
commit
4162ef72d4
@ -22,16 +22,13 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
|
||||
/// </summary>
|
||||
public int PreEmpt = 800;
|
||||
|
||||
public override void AddConnections(IEnumerable<DrawableHitObject> drawableHitObjects, int startIndex = 0, int endIndex = -1)
|
||||
public override void AddConnections(IEnumerable<DrawableHitObject> drawableHitObjects)
|
||||
{
|
||||
var hitObjects = new List<OsuHitObject>(drawableHitObjects
|
||||
.Select(d => (OsuHitObject)d.HitObject)
|
||||
.OrderBy(h => h.StartTime));
|
||||
|
||||
if (endIndex < 0)
|
||||
endIndex = hitObjects.Count - 1;
|
||||
|
||||
for (int i = startIndex + 1; i <= endIndex; i++)
|
||||
for (int i = 1; i <= hitObjects.Count - 1; i++)
|
||||
{
|
||||
var prevHitObject = hitObjects[i - 1];
|
||||
var currHitObject = hitObjects[i];
|
||||
|
@ -13,8 +13,6 @@ namespace osu.Game.Modes.Osu.Objects.Drawables.Connections
|
||||
/// Create drawables inside this container, connecting hitobjects visually, for example with follow points.
|
||||
/// </summary>
|
||||
/// <param name="drawableHitObjects">The drawables hit objects to create connections for</param>
|
||||
/// <param name="startIndex">Start index into the drawableHitObjects enumeration.</param>
|
||||
/// <param name="endIndex">End index into the drawableHitObjects enumeration. Use -1 to draw connections until the end.</param>
|
||||
public abstract void AddConnections(IEnumerable<DrawableHitObject> drawableHitObjects, int startIndex = 0, int endIndex = -1);
|
||||
public abstract void AddConnections(IEnumerable<DrawableHitObject> drawableHitObjects);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user