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
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ public virtual void OnJudgement(DrawableHitObject judgedObject, Judgement judgem
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);
}