跳转到内容

BtNode

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

Defined in: ai/bt/types.ts:22

optional arg?: string

Defined in: ai/bt/types.ts:29

Optional string argument an action leaf passes to its registry fn.


optional children?: BtNode[]

Defined in: ai/bt/types.ts:33

Children: many for a composite, one for a decorator.


optional count?: number

Defined in: ai/bt/types.ts:35

repeater: iterations before Success; 0 = forever.


optional id?: string

Defined in: ai/bt/types.ts:25

Editor-only stable id for selection/addressing; ignored by the interpreter.


optional name?: string

Defined in: ai/bt/types.ts:27

Registry name for a leaf (action/condition).


optional params?: Record<string, AiParamValue>

Defined in: ai/bt/types.ts:31

The action’s declared parameters by name — the other projection of arg.


optional policy?: "one" | "all"

Defined in: ai/bt/types.ts:37

parallel: succeed when one child succeeds, or when all do (default).


optional seconds?: number

Defined in: ai/bt/types.ts:39

wait: seconds to run before Success.


type: BtNodeType

Defined in: ai/bt/types.ts:23


optional x?: number

Defined in: ai/bt/types.ts:41

Editor-only canvas position; ignored by the interpreter.


optional y?: number

Defined in: ai/bt/types.ts:42