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

Method stop

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

* 停止World

()

Source from the content-addressed store, hash-verified

361 * 停止World
362 */
363 public stop(): void {
364 if (!this._isActive) {
365 return;
366 }
367
368 for (const sceneName of this._activeScenes) {
369 this.setSceneActive(sceneName, false);
370 }
371
372 for (const system of this._globalSystems) {
373 system.reset?.();
374 }
375
376 this._isActive = false;
377 logger.info(`停止World: ${this.name}`);
378 }
379
380 /**
381 * @zh 更新World中的全局System

Callers 1

destroyMethod · 0.95

Calls 3

setSceneActiveMethod · 0.95
resetMethod · 0.65
infoMethod · 0.45

Tested by

no test coverage detected