RemovedQueryInstance
此内容尚不支持你的语言。
Defined in: ecs/query.ts:815
The entities that lost a component since this system last ran, as Removed asked for. Yields entities only — the component is gone, so there is nothing left to read from it.
Type Parameters
Section titled “Type Parameters”T extends AnyComponentDef
Implements
Section titled “Implements”Iterable<Entity>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RemovedQueryInstance<
T>(world,component,lastRunTick):RemovedQueryInstance<T>
Defined in: ecs/query.ts:824
Constructing one has NO side effect on the world: a runner that builds several params and throws on a later one would otherwise leave a claim on removal history that nothing can ever release.
Parameters
Section titled “Parameters”component
Section titled “component”T
lastRunTick
Section titled “lastRunTick”number
Returns
Section titled “Returns”RemovedQueryInstance<T>
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
Iterator<number>
Defined in: ecs/query.ts:860
Returns
Section titled “Returns”Iterator<number>
Implementation of
Section titled “Implementation of”Iterable.[iterator]
isEmpty()
Section titled “isEmpty()”isEmpty():
boolean
Defined in: ecs/query.ts:864
Returns
Section titled “Returns”boolean
toArray()
Section titled “toArray()”toArray():
number[]
Defined in: ecs/query.ts:868
Returns
Section titled “Returns”number[]