跳转到内容

registerAction

此内容尚不支持你的语言。

registerAction(name, fn): void

Defined in: ai/fsm/AiContext.ts:52

Register a named action referenced by FSM state hooks / BT leaves / event rows — as a bare function, or with declared parameters, which is what turns an editor text box into typed controls.

string

AiAction<AiContext> | AiActionSpec<AiContext>

void