Struct TableView¶
Namespace: Apogee.Ecs
Assembly: Apogee.Ecs.dll
The entities of one table and their components, valid only inside the call that got it. A field is the component of the term with that index; components are arrays, one element per entity (a field a term gets from elsewhere, such as a singleton, is a single element).
public readonly ref struct TableView
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Count¶
public int Count { get; }
Property Value¶
DeltaTime¶
The time step of the frame for a system or observer; zero in a query.
public float DeltaTime { get; }
Property Value¶
Entities¶
public ReadOnlySpan<Entity> Entities { get; }
Property Value¶
Methods¶
Field<T>(int)¶
public Span<T> Field<T>(int index) where T : unmanaged
Parameters¶
index int
Returns¶
Span<T>
Type Parameters¶
T
FieldPointer(int, int)¶
The memory of the component of the term with this index, or null when the table has none (a Not or absent optional term).
public byte* FieldPointer(int index, int size)
Parameters¶
index int
size int
Returns¶
byte*