Skip to content

Home > @esengine/ecs-framework-monorepo > EventBus > emit

EventBus.emit() method

发射事件

Signature:

typescript
emit<T>(eventType: string, data: T): void;

Parameters

Parameter

Type

Description

eventType

string

事件类型

data

T

事件数据

Returns:

void

基于 MIT 许可证发布