Skip to content

ECS Framework API v2.2.13


ECS Framework API / IEventListenerConfig

Interface: IEventListenerConfig

Defined in: packages/core/src/Types/index.ts:138

事件监听器配置接口

Properties

once?

optional once: boolean

Defined in: packages/core/src/Types/index.ts:140

是否只执行一次


priority?

optional priority: number

Defined in: packages/core/src/Types/index.ts:142

优先级(数字越大优先级越高)


async?

optional async: boolean

Defined in: packages/core/src/Types/index.ts:144

是否异步执行


thisArg?

optional thisArg: object

Defined in: packages/core/src/Types/index.ts:146

事件处理函数的 this 绑定对象

Released under the MIT License.