Remove start/end index.

This commit is contained in:
Damnae 2017-02-12 06:02:45 +01:00
parent 7efa3415a4
commit 4162ef72d4
2 changed files with 3 additions and 8 deletions

View File

@ -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];

View File

@ -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);
}
}