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

Function destroy

packages/core/src/ECS/Systems/EntitySystem.ts:1250–1259  ·  view source on GitHub ↗

* 框架内部销毁方法 * 由框架调用,处理系统的完整销毁流程

()

Source from the content-addressed store, hash-verified

1248 * 由框架调用,处理系统的完整销毁流程
1249 */
1250 public destroy(): void {
1251 // 防止重复销毁
1252 if (this._destroyed) {
1253 return;
1254 }
1255
1256 this.cleanupManualEventListeners();
1257 this._destroyed = true;
1258 this.onDestroy();
1259 }
1260
1261 /**
1262 * 获取Logger名称

Callers

nothing calls this directly

Calls 1

onDestroyMethod · 0.65

Tested by

no test coverage detected