UNPKG

behaviortree

Version:

A JavaScript implementation of Behavior Trees. They are useful for implementing AIs. For Browsers and NodeJS.

11 lines 581 B
import Node from './Node'; import { Blackboard, RunCallback, DecoratorConfig, RunConfig, DecoratorBlueprint, RunResult } from './types'; export default class Decorator extends Node { config: DecoratorConfig; nodeType: string; constructor({ config, ...props }?: DecoratorBlueprint); decorate(run: RunCallback, blackboard: Blackboard, config: DecoratorConfig): RunResult; run(blackboard: Blackboard, { introspector, rerun, registryLookUp, ...config }?: RunConfig): RunResult; setConfig(config: DecoratorConfig): void; } //# sourceMappingURL=Decorator.d.ts.map