private void ConnectNodes(Port outputSocket, Port inputSocket) { var tempEdge = new Edge() { output = outputSocket, input = inputSocket }; tempEdge?.input.Connect(tempEdge); tempEdge?.output.Connect(tempEdge); graph.Add(tempEdge); }
private void CreateBlackBoard() { var blackboard = new Blackboard(graph); blackboard.Add(new BlackboardSection { title = "Dialogue Properties" }); blackboard.addItemRequested = BuildBlackboardMenu; blackboard.SetPosition(new Rect(10, 30, 200, 300)); graph.Add(blackboard); }
private void GenerateBlackBoard() { var blackboard = new Blackboard(graph); blackboard.Add(new BlackboardSection { title = "Exposed Variables" }); blackboard.addItemRequested = board => { }; blackboard.SetPosition(new Rect(10, 30, 200, 300)); graph.Add(blackboard); //graph.Blackboard = blackboard; }