Revert unnecessary change of casting

This commit is contained in:
smoogipoo
2020-11-11 19:27:07 +09:00
parent 7fdaf69903
commit a8929b0764

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.UI
/// <summary> /// <summary>
/// All currently in-use <see cref="DrawableHitObject"/>s. /// All currently in-use <see cref="DrawableHitObject"/>s.
/// </summary> /// </summary>
public IEnumerable<DrawableHitObject> Objects => InternalChildren.OfType<DrawableHitObject>().OrderBy(h => h.HitObject.StartTime); public IEnumerable<DrawableHitObject> Objects => InternalChildren.Cast<DrawableHitObject>().OrderBy(h => h.HitObject.StartTime);
/// <summary> /// <summary>
/// All currently in-use <see cref="DrawableHitObject"/>s that are alive. /// All currently in-use <see cref="DrawableHitObject"/>s that are alive.
@ -29,7 +29,7 @@ namespace osu.Game.Rulesets.UI
/// <remarks> /// <remarks>
/// If this <see cref="HitObjectContainer"/> uses pooled objects, this is equivalent to <see cref="Objects"/>. /// If this <see cref="HitObjectContainer"/> uses pooled objects, this is equivalent to <see cref="Objects"/>.
/// </remarks> /// </remarks>
public IEnumerable<DrawableHitObject> AliveObjects => AliveInternalChildren.OfType<DrawableHitObject>().OrderBy(h => h.HitObject.StartTime); public IEnumerable<DrawableHitObject> AliveObjects => AliveInternalChildren.Cast<DrawableHitObject>().OrderBy(h => h.HitObject.StartTime);
/// <summary> /// <summary>
/// Invoked when a <see cref="DrawableHitObject"/> is judged. /// Invoked when a <see cref="DrawableHitObject"/> is judged.