MCPcopy Create free account
hub / github.com/esengine/esengine / notifyQuerySystems

Method notifyQuerySystems

packages/core/src/ECS/Entity.ts:432–438  ·  view source on GitHub ↗
(changedComponentType?: ComponentType)

Source from the content-addressed store, hash-verified

430 }
431
432 private notifyQuerySystems(changedComponentType?: ComponentType): void {
433 if (!this.scene?.querySystem) return;
434
435 this.scene.querySystem.updateEntity(this);
436 this.scene.clearSystemEntityCaches();
437 this.scene.notifyEntityComponentChanged?.(this, changedComponentType);
438 }
439
440 /**
441 * @zh 添加组件到实体

Callers 3

addComponentMethod · 0.95
removeComponentMethod · 0.95
removeAllComponentsMethod · 0.95

Calls 3

updateEntityMethod · 0.45

Tested by

no test coverage detected