public FlowNodeData AddNode(FlowAsset node) { if (node == null) { throw new ArgumentNullException("node"); } var nodeData = new FlowNodeData(node); nodes.Add(nodeData); return(nodeData); }
public FlowNodeData(/*FlowGraphData graph,*/ FlowAsset nodeAsset) { if (nodeAsset == null) { throw new ArgumentNullException("nodeAsset"); } this.nodeAsset = nodeAsset; New(); // this.Graph = graph; node = nodeAsset.CreateFlowNode(); this.isNodeAsset = true; isInitial = true; }