public Graph(GraphDto graph, ISelectionService <BlackboardElement> selectionService, ICommandProvider commandProvider, IActionsDatabase actionsDatabase, IOutputManager outputManager) : base(selectionService) { Id = Guid.NewGuid(); NodeList = new ActionList(this, commandProvider, actionsDatabase); _cmdProvider = commandProvider; _output = outputManager; }
public NodeDatabase(IActionsDatabase actionsDatabase, IPluginProvider pluginProvider, IOutputManager output) { _actionsDatabase = actionsDatabase; _plugins = pluginProvider; _output = output; Register(new NodeEntry(typeof(VariableNode <bool>), Guid.Parse("91bf6391-aa44-46d2-9aa6-280ffd102dc3")) { DisplayName = "New bool", Keywords = "variable bool" }); Register(new NodeEntry(typeof(VariableNode <int>), Guid.Parse("3ba992a0-137f-47a4-8d48-00ca82565f7b")) { DisplayName = "New int", Keywords = "variable int" }); Register(new NodeEntry(typeof(VariableNode <double>), Guid.Parse("d5c82a03-3b03-47d6-b6c3-93dd2ac53209")) { DisplayName = "New double", Keywords = "variable double" }); Register(new NodeEntry(typeof(VariableNode <string>), Guid.Parse("cd475c21-6439-423e-a728-398d3bc7dfd4")) { DisplayName = "New string", Keywords = "variable string" }); Register(new NodeEntry(typeof(BranchNode), BranchNode.Template) { DisplayName = "Branch", Category = "Flow", Keywords = "branch if bool flow" }); Register(new NodeEntry(typeof(SequenceNode), SequenceNode.Template) { DisplayName = "Sequence", Category = "Flow", Keywords = "sequence execute flow" }); Register(new NodeEntry(typeof(WhileNode), WhileNode.Template) { DisplayName = "While", Category = "Flow", Keywords = "while loop flow" }); Register(new NodeEntry(typeof(ForLoopNode), ForLoopNode.Template) { DisplayName = "For", Category = "Flow", Keywords = "for loop flow" }); Register(new NodeEntry(typeof(PrintNode), PrintNode.Template) { DisplayName = "Print", Category = "Utils", Keywords = "print string" }); Register(new NodeEntry(typeof(ToStringNode), ToStringNode.Template) { DisplayName = "To String", Category = "Utils", Keywords = "to string" }); }