mirror of https://github.com/ppy/osu
Add a way to access alive hitobjects
This commit is contained in:
parent
7beb4c3507
commit
2b79ad879f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue