MCPcopy Index your code
hub / github.com/esengine/esengine / INodeExecutor

Interface INodeExecutor

packages/behavior-tree/src/execution/NodeExecutor.ts:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 * 执行器是无状态的,状态存储在NodeRuntimeState中
42 */
43export interface INodeExecutor {
44 /**
45 * 执行节点逻辑
46 *
47 * @param context 执行上下文
48 * @returns 执行结果状态
49 */
50 execute(context: NodeExecutionContext): TaskStatus;
51
52 /**
53 * 重置节点状态(可选)
54 *
55 * 当节点完成或被中断时调用
56 */
57 reset?(context: NodeExecutionContext): void;
58}
59
60/**
61 * 复合节点执行结果

Callers 5

executeNodeMethod · 0.65
uninstallMethod · 0.65
createNewMethod · 0.65
disposeMethod · 0.65
handleResetFunction · 0.65

Implementers 15

UntilFailExecutorpackages/behavior-tree/src/execution/E
SequenceExecutorpackages/behavior-tree/src/execution/E
SubTreeExecutorpackages/behavior-tree/src/execution/E
RandomSelectorExecutorpackages/behavior-tree/src/execution/E
ConditionalExecutorpackages/behavior-tree/src/execution/E
RootExecutorpackages/behavior-tree/src/execution/E
SelectorExecutorpackages/behavior-tree/src/execution/E
InverterExecutorpackages/behavior-tree/src/execution/E
ParallelSelectorExecutorpackages/behavior-tree/src/execution/E
WaitActionpackages/behavior-tree/src/execution/E
RepeaterExecutorpackages/behavior-tree/src/execution/E
ParallelExecutorpackages/behavior-tree/src/execution/E

Calls

no outgoing calls

Tested by

no test coverage detected