using System; namespace Engine.Core; public class BehaviourCollector : BehaviourCollectorBase where T : class { protected readonly FastList behaviours = new(32); public override T this[Index index] => behaviours[index]; public override int Count => behaviours.Count; protected override void AddBehaviour(T behaviour) => behaviours.Add(behaviour); protected override bool RemoveBehaviour(T tBehaviour) => behaviours.Remove(tBehaviour); public BehaviourCollector() { } public BehaviourCollector(IUniverse universe) : base(universe) { } }