Table of Contents

Struct PooledEntityList

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

PooledEntityList

Properties

Count

Number of entities in the filtered set.

public int Count { get; }

Property Value

int

this[int]

Access entity by index.

public EntityId this[int index] { get; }

Parameters

index int

Property Value

EntityId

Methods

GetEnumerator()

Value-type enumerator — no allocation.

public PooledEntityList.Enumerator GetEnumerator()

Returns

PooledEntityList.Enumerator