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

Method removeSystemFromIndex

packages/core/src/ECS/Scene.ts:760–766  ·  view source on GitHub ↗

* 从组件索引中移除系统 * * Remove a system from all component indices. * * @param system 要移除的系统 | The system to remove

(system: EntitySystem)

Source from the content-addressed store, hash-verified

758 * @param system 要移除的系统 | The system to remove
759 */
760 private removeSystemFromIndex(system: EntitySystem): void {
761 this._globalNotifySystems.delete(system);
762
763 for (const systems of this._componentIdToSystems.values()) {
764 systems.delete(system);
765 }
766 }
767
768 /**
769 * 在场景的实体列表中添加一个实体

Callers 1

removeEntityProcessorMethod · 0.95

Calls 2

deleteMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected