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

Method execute

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

Source from the content-addressed store, hash-verified

183
184export class HasEffectExecutor implements INodeExecutor {
185 execute(node: BlueprintNode, context: unknown): ExecutionResult {
186 const ctx = context as EffectContext;
187 const effectTypeId = ctx.evaluateInput(node.id, 'effectTypeId', '') as string;
188
189 const container = ctx.getEffectContainer();
190 if (!container || !effectTypeId) {
191 return { outputs: { hasEffect: false } };
192 }
193
194 const hasEffect = container.hasType(effectTypeId);
195
196 return { outputs: { hasEffect } };
197 }
198}
199
200// =============================================================================

Callers

nothing calls this directly

Calls 3

getEffectContainerMethod · 0.80
hasTypeMethod · 0.80
evaluateInputMethod · 0.65

Tested by

no test coverage detected