ecspresso
    Preparing search index...

    Interface ActionNode<BB>

    Action leaf — executes behavior each tick. Returns Running for multi-frame actions. Optional onAbort fires when a higher-priority branch preempts this running action.

    interface ActionNode<BB extends object = Record<string, unknown>> {
        name: string;
        nodeIndex: number;
        onAbort?: (ctx: BehaviorTreeContext<BB>) => void;
        tick: (ctx: BehaviorTreeContext<BB>) => NodeStatus;
        type: "action";
    }

    Type Parameters

    • BB extends object = Record<string, unknown>
    Index

    Properties

    name: string
    nodeIndex: number
    onAbort?: (ctx: BehaviorTreeContext<BB>) => void
    type: "action"