Struct PooledEntityList
ArrayPool<T>-backed read-only entity collection used by Entities. Avoids per-tick allocations after warm-up. The backing array is rented from the shared pool at system dispatch and returned via Typhon.Engine.PooledEntityList.Return after the system completes.
public struct PooledEntityList : IReadOnlyCollection<EntityId>, IEnumerable<EntityId>, IEnumerable
- Implements
- Inherited Members
Fields
Empty
Singleton empty list — no pool rental, safe to Return() multiple times.
public static readonly PooledEntityList Empty
Field Value
Properties
Count
Number of entities in the filtered set.
public int Count { get; }
Property Value
this[int]
Access entity by index.
public EntityId this[int index] { get; }
Parameters
indexint
Property Value
Methods
GetEnumerator()
Value-type enumerator — no allocation.
public PooledEntityList.Enumerator GetEnumerator()