port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using System;
using System.Reactive;
using System.Reactive.Linq;
using DynamicData;
using Intromat.Model.Compiler;
using Intromat.ViewModels;
using NodeNetwork.Toolkit.ValueNode;
using NodeNetwork.ViewModels;
namespace Intromat.Nodes
{
public abstract class ExecutionNodeBase : CodeGenNodeViewModel
{
protected readonly EndpointGroup _executionFlowGroup;
protected ExecutionNodeBase(NodeType type)
: base(type)
{
_executionFlowGroup = new EndpointGroup("Execution Flow");
FlowOut = new CodeGenInputViewModel<IStatement>(EPortType.Execution)
{
Name = "Flow",
Group = _executionFlowGroup
};
Inputs.Add(FlowOut);
FlowOutChanged = FlowOut.ValueChanged.Select(_ => Unit.Default).StartWith(Unit.Default);
FlowIn = new CodeGenOutputViewModel<IStatement>(EPortType.Execution)
{
Name = "Flow",
Group = _executionFlowGroup
};
Outputs.Add(FlowIn);
}
public ValueNodeOutputViewModel<IStatement> FlowIn { get; }
public ValueNodeInputViewModel<IStatement> FlowOut { get; }
public IObservable<Unit> FlowOutChanged { get; }
}
}