Class Query¶
Namespace: Apogee.Ecs
Assembly: Apogee.Ecs.dll
Entities that match a list of terms, cached by Flecs. Iterating defers structural changes (adding or removing components, deleting entities) until the iteration is done. Dispose it when it is not needed; the world disposes the rest.
public class Query : IDisposable
Inheritance¶
Derived¶
Query<T1, T2, T3>, Query<T1, T2>, Query<T1>, Query<T1, T2, T3, T4>
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
IsDisposed¶
public bool IsDisposed { get; }
Property Value¶
TermCount¶
public int TermCount { get; }
Property Value¶
Methods¶
Count()¶
The number of matching entities.
public int Count()
Returns¶
Dispose()¶
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ForEachTable(TableAction)¶
Calls action for each table that matches.
public void ForEachTable(TableAction action)
Parameters¶
action TableAction