BtNode
此内容尚不支持你的语言。
Defined in: ai/bt/types.ts:22
Properties
Section titled “Properties”
optionalarg?:string
Defined in: ai/bt/types.ts:29
Optional string argument an action leaf passes to its registry fn.
children?
Section titled “children?”
optionalchildren?:BtNode[]
Defined in: ai/bt/types.ts:33
Children: many for a composite, one for a decorator.
count?
Section titled “count?”
optionalcount?:number
Defined in: ai/bt/types.ts:35
repeater: iterations before Success; 0 = forever.
optionalid?:string
Defined in: ai/bt/types.ts:25
Editor-only stable id for selection/addressing; ignored by the interpreter.
optionalname?:string
Defined in: ai/bt/types.ts:27
Registry name for a leaf (action/condition).
params?
Section titled “params?”
optionalparams?:Record<string,AiParamValue>
Defined in: ai/bt/types.ts:31
The action’s declared parameters by name — the other projection of arg.
policy?
Section titled “policy?”
optionalpolicy?:"one"|"all"
Defined in: ai/bt/types.ts:37
parallel: succeed when one child succeeds, or when all do (default).
seconds?
Section titled “seconds?”
optionalseconds?:number
Defined in: ai/bt/types.ts:39
wait: seconds to run before Success.
type:
BtNodeType
Defined in: ai/bt/types.ts:23
optionalx?:number
Defined in: ai/bt/types.ts:41
Editor-only canvas position; ignored by the interpreter.
optionaly?:number
Defined in: ai/bt/types.ts:42