QueryEntities.md

July 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

QueryEntities Struct

Provide the result set of an ArchetypeQuery as a set of Entity's.

public readonly struct QueryEntities :
System.Collections.Generic.IEnumerable<Friflo.Engine.ECS.Entity>,
System.Collections.IEnumerable

Implements System.Collections.Generic.IEnumerable<Entity>, System.Collections.IEnumerable

Properties
CountReturn the number of entities matching the query.
Methods
ApplyBatch(EntityBatch)Apply the given entity batch to all entities in this set.
See Example.
GetEnumerator()
ToEntityList()Returns the query result as an EntityList to perform structural changes.
ToEntityList(EntityList)Returns the query result as an EntityList to perform structural changes.
ToString()
Explicit Interface Implementations
System.Collections.Generic.IEnumerable<Friflo.Engine.ECS.Entity>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()