mistreevous
Version:
A library to declaratively define, build and execute behaviour trees, written in TypeScript for Node and browsers
18 lines (17 loc) • 587 B
TypeScript
import Callback from "./Callback";
import { Agent } from "../../Agent";
/**
* A STEP callback which defines an agent function to call when the associated node is updated.
*/
export default class Step extends Callback {
/**
* @param functionName The name of the agent function to call.
* @param args The array of callback argument definitions.
*/
constructor(functionName: string, args: any[]);
/**
* Attempt to call the agent function that this callback refers to.
* @param agent The agent.
*/
callAgentFunction: (agent: Agent) => void;
}