ecspresso
    Preparing search index...

    Interface GuardNode<BB>

    Decorator — conditional gate. Ticks child only when condition passes.

    interface GuardNode<BB extends object = Record<string, unknown>> {
        child: BehaviorTreeNode<BB>;
        condition: (ctx: BehaviorTreeContext<BB>) => boolean;
        nodeIndex: number;
        type: "guard";
    }

    Type Parameters

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

    Properties

    condition: (ctx: BehaviorTreeContext<BB>) => boolean
    nodeIndex: number
    type: "guard"