public Node(NodeContent content, Vector2 position,
             Action <ConnectionPoint> onClickConnection, Action <Node> onRemoveNode, Action <Node> onDuplicateComplete)
     : this(content, position, Guid.NewGuid().ToString(), onClickConnection, onRemoveNode, onDuplicateComplete)
 {
 }
Example #2
0
 private Node CreateNode(NodeContent content, Vector2 mousePosition)
 => new Node(content, mousePosition, OnClickConnectionPoint, OnClickRemoveNode, x => _nodes = _nodes.With(x));