Skip to main content

getEnabledEvents 获取已启用的事件指令

getEnabledEvents​

类型: MethodDeclaration

定义位置: event.ts

描述​

获取已启用的事件指令

参数 type: 事件类型

参数​

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

返回值​

类型: Array<CommandFunctionList>

源代码​

位置: 第 234 行

public getEnabledEvents(type: string): Array<CommandFunctionList> {
const list = []
for (const commands of this.typeMap[type]!) {
if (commands.enabled) {
list.push(commands)
}
}
return list
}

文档生成时间:2026/2/1 16:51:39