Skip to content

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

ECSFluentAPI.emit() method

触发事件

Signature:

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

Parameters

Parameter

Type

Description

eventType

string

事件类型

event

T

事件数据

Returns:

void

基于 MIT 许可证发布