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

Method execute

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

Source from the content-addressed store, hash-verified

220
221export class HasEffectTagExecutor implements INodeExecutor {
222 execute(node: BlueprintNode, context: unknown): ExecutionResult {
223 const ctx = context as EffectContext;
224 const tag = ctx.evaluateInput(node.id, 'tag', '') as string;
225
226 const container = ctx.getEffectContainer();
227 if (!container || !tag) {
228 return { outputs: { hasTag: false } };
229 }
230
231 const hasTag = container.hasTag(tag);
232
233 return { outputs: { hasTag } };
234 }
235}
236
237// =============================================================================

Callers

nothing calls this directly

Calls 3

getEffectContainerMethod · 0.80
hasTagMethod · 0.80
evaluateInputMethod · 0.65

Tested by

no test coverage detected