(node: BlueprintNode, context: unknown)
| 183 | |
| 184 | export 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 | // ============================================================================= |
nothing calls this directly
no test coverage detected