MCPcopy Create free account
hub / github.com/esengine/esengine / execute

Method execute

packages/effect/src/nodes/EffectNodes.ts:110–122  ·  view source on GitHub ↗
(node: BlueprintNode, context: unknown)

Source from the content-addressed store, hash-verified

108
109export class RemoveEffectExecutor implements INodeExecutor {
110 execute(node: BlueprintNode, context: unknown): ExecutionResult {
111 const ctx = context as EffectContext;
112 const effectTypeId = ctx.evaluateInput(node.id, 'effectTypeId', '') as string;
113
114 const container = ctx.getEffectContainer();
115 if (!container || !effectTypeId) {
116 return { outputs: { removed: 0 }, nextExec: 'exec' };
117 }
118
119 const removed = container.removeByType(effectTypeId);
120
121 return { outputs: { removed }, nextExec: 'exec' };
122 }
123}
124
125// =============================================================================

Callers

nothing calls this directly

Calls 3

getEffectContainerMethod · 0.80
removeByTypeMethod · 0.80
evaluateInputMethod · 0.65

Tested by

no test coverage detected