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

Method removeEntityProcessor

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

* 从场景中删除EntitySystem处理器 * @param processor 要删除的处理器

(processor: EntitySystem)

Source from the content-addressed store, hash-verified

1206 * @param processor 要删除的处理器
1207 */
1208 public removeEntityProcessor(processor: EntitySystem): void {
1209 const constructor = processor.constructor as ServiceType<EntitySystem>;
1210
1211 this._services.unregister(constructor);
1212 this.markSystemsOrderDirty();
1213 this.removeSystemFromIndex(processor);
1214 processor.reset();
1215 }
1216
1217 /**
1218 * 从场景中删除系统(removeEntityProcessor的别名)

Callers 3

removeSystemMethod · 0.95
Scene.test.tsFile · 0.45

Calls 4

markSystemsOrderDirtyMethod · 0.95
removeSystemFromIndexMethod · 0.95
unregisterMethod · 0.65
resetMethod · 0.65

Tested by

no test coverage detected