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

Method offAll

packages/core/src/ECS/Core/EventBus.ts:153–159  ·  view source on GitHub ↗

* 移除指定事件类型的所有监听器 * @param eventType 事件类型

(eventType: string)

Source from the content-addressed store, hash-verified

151 * @param eventType 事件类型
152 */
153 public offAll(eventType: string): void {
154 if (this.isDebugMode) {
155 EventBus._logger.info(`移除所有监听器: ${eventType}`);
156 }
157
158 this.eventSystem.offAll(eventType);
159 }
160
161 /**
162 * 检查是否有指定事件的监听器

Callers 1

EventBus.test.tsFile · 0.45

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected