1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 15:23:14 +08:00

Add a way to access alive hitobjects

This commit is contained in:
smoogipoo 2018-01-04 16:37:48 +09:00
parent 7beb4c3507
commit 2b79ad879f

View File

@ -97,6 +97,8 @@ namespace osu.Game.Rulesets.UI
public class HitObjectContainer : CompositeDrawable
{
public virtual IEnumerable<DrawableHitObject> Objects => InternalChildren.Cast<DrawableHitObject>();
public virtual IEnumerable<DrawableHitObject> AliveObjects => AliveInternalChildren.Cast<DrawableHitObject>();
public virtual void Add(DrawableHitObject hitObject) => AddInternal(hitObject);
public virtual bool Remove(DrawableHitObject hitObject) => RemoveInternal(hitObject);
}