Declares a new component.
A function returning the components default value.
This is the value the component has when added to an Entity.
The component declaration.
Declares a new component.
A unique identifier. If a string is provided,
you'll need to ensure that it is unique manually.
A function returning the components default value.
This is the value the component has when added to an Entity.
The component declaration.
Generated using TypeDoc
The result returned when you call
Query.collect, consisting of multipleSets ofEntitys:entitiescontains all entities matching the query at the timeQuery.collectwas called.addedis only present if the query was constructed withtrackAdded: trueand contains all entities newly matching the query, since the last timeQuery.collectwas called.removedis only present if the query was constructed withtrackRemoved: trueand contains all entities no longer matching the query, since the last timeQuery.collectwas called.mutatedis only present if the query was constructed with theQueryProps.trackMutatedoption and contains all entities with changes to any of the components listed inQueryProps.trackMutated, since the last timeQuery.collectwas called.The result of a
Querywith all tracking options enabled looks like this: