mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:12:56 +08:00
Replace .OfType with .Cast
This commit is contained in:
parent
227cae3ff8
commit
697efba5e2
@ -96,7 +96,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
public class HitObjectContainer : CompositeDrawable
|
||||
{
|
||||
public virtual IEnumerable<DrawableHitObject> Objects => InternalChildren.OfType<DrawableHitObject>();
|
||||
public virtual IEnumerable<DrawableHitObject> Objects => InternalChildren.Cast<DrawableHitObject>();
|
||||
public virtual void Add(DrawableHitObject hitObject) => AddInternal(hitObject);
|
||||
public virtual bool Remove(DrawableHitObject hitObject) => RemoveInternal(hitObject);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user