Skip to content

1681-engine / index / condition

Function: condition() ​

ts
function condition<C>(name, test): BtNode<C>;

Defined in: src/ai/behaviorTree.ts:314

A test: success when test holds, else failure. Never runs.

Type Parameters ​

Type Parameter
C

Parameters ​

ParameterType
namestring
test(ctx) => boolean

Returns ​

BtNode<C>

Released under the MIT License.