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

Method removeGlobalSystem

packages/core/src/ECS/World.ts:318–329  ·  view source on GitHub ↗

* 移除全局System

(system: IGlobalSystem)

Source from the content-addressed store, hash-verified

316 * 移除全局System
317 */
318 public removeGlobalSystem(system: IGlobalSystem): boolean {
319 const index = this._globalSystems.indexOf(system);
320 if (index === -1) {
321 return false;
322 }
323
324 this._globalSystems.splice(index, 1);
325 system.reset?.();
326
327 logger.debug(`从World '${this.name}' 中移除全局System: ${system.name}`);
328 return true;
329 }
330
331 /**
332 * 获取全局System

Callers 1

World.test.tsFile · 0.45

Calls 2

resetMethod · 0.65
debugMethod · 0.45

Tested by

no test coverage detected