port from perforce
This commit is contained in:
36
intromat/Intromat/Nodes/MainEntryPointNode.cs
Normal file
36
intromat/Intromat/Nodes/MainEntryPointNode.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user