36 lines
933 B
C#
36 lines
933 B
C#
using DynamicData;
|
|
using Intromat.Model.Compiler;
|
|
using Intromat.PersistentModel;
|
|
using Intromat.ViewModels;
|
|
using Intromat.Views;
|
|
using NodeNetwork.Toolkit.ValueNode;
|
|
using ReactiveUI;
|
|
using Splat;
|
|
|
|
namespace Intromat.Nodes
|
|
{
|
|
public class MainEntryPointNode : CodeGenNodeViewModel
|
|
{
|
|
static MainEntryPointNode()
|
|
{
|
|
Locator.CurrentMutable.Register(() => new CodeGenNodeView(), typeof(IViewFor<MainEntryPointNode>));
|
|
}
|
|
|
|
public MainEntryPointNode()
|
|
: base(NodeType.Special)
|
|
{
|
|
Name = "Main";
|
|
|
|
OnClickFlow = new CodeGenInputViewModel<IStatement>(EPortType.Execution) { Name = "Entry point" };
|
|
|
|
Inputs.Add(OnClickFlow);
|
|
}
|
|
|
|
public ValueNodeInputViewModel<IStatement> OnClickFlow { get; }
|
|
|
|
public override NodeModelBase CreateModel()
|
|
{
|
|
return new MainEntryPointModel();
|
|
}
|
|
}
|
|
} |