Skip to main content

emit 调用触发器事件和脚本

emit

类型: MethodDeclaration

所属类: Trigger

定义位置: trigger.ts

描述

调用触发器事件和脚本

参数 type: 触发器事件类型

参数

参数名类型描述默认值
typestring--

返回值

类型: void

源代码

位置: 第 464 行

public emit(type: string): void {
this.callEvent(type)
this.script.emit(type, this)
}

文档生成时间:2025/7/7 12:07:06