Home > @esengine/ecs-framework-monorepo > Emitter
Emitter class
用于事件管理
Signature:
typescript
export declare class Emitter<T, TContext = unknown>
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new instance of the |
Methods
Method | Modifiers | Description |
---|---|---|
开始监听项 | ||
释放所有资源,清理所有监听器 | ||
触发该事件 | ||
获取事件类型数量 | ||
获取指定事件类型的监听器数量 | ||
判断是否存在该类型的观察者 | ||
移除指定事件类型的所有监听器 | ||
移除监听项 |