QueryCache
Defined in: QueryCache.ts:42
Incrementally maintained entity sets based on component signatures.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new QueryCache():
QueryCache
Returns
Section titled “Returns”QueryCache
Methods
Section titled “Methods”onComponentAdded()
Section titled “onComponentAdded()”onComponentAdded(
entity):void
Defined in: QueryCache.ts:53
Called by Entity when a component is added.
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”void
onComponentRemoved()
Section titled “onComponentRemoved()”onComponentRemoved(
entity):void
Defined in: QueryCache.ts:62
Called by Entity when a component is removed.
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”void
onEntityDestroyed()
Section titled “onEntityDestroyed()”onEntityDestroyed(
entity):void
Defined in: QueryCache.ts:71
Called when an entity is destroyed.
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”void
register()
Section titled “register()”register(
filter):QueryResult
Defined in: QueryCache.ts:46
Register a query. Returns a stable reference to a live result set.
Parameters
Section titled “Parameters”filter
Section titled “filter”QueryFilter