ecspresso
Preparing search index...
plugins/ai/behavior-tree
GuardNode
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
child
condition
node
Index
type
Properties
Readonly
child
child
:
BehaviorTreeNode
<
BB
>
Readonly
condition
condition
:
(
ctx
:
BehaviorTreeContext
<
BB
>
)
=>
boolean
node
Index
nodeIndex
:
number
Readonly
type
type
:
"guard"
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
child
condition
node
Index
type
ecspresso
Loading...
Decorator — conditional gate. Ticks child only when condition passes.