internal void FinishLoading(Graph graph) { if (_cachedLoadingNode.Input != null) { Input = new Connection(graph, _cachedLoadingNode.Input); } Outputs.AddRange(_cachedLoadingNode.Outputs.Select(connection => new Connection(graph, connection))); _cachedLoadingNode = null; RecalculateWidth(); }
internal Node(SavedNode node) { Outputs = new List <Connection>(); Id = node.Id; X = node.X; Y = node.Y; Name = node.Name; NodeInfo = NodeInfo.GetByType(node.Type); _cachedLoadingNode = node; RecalculateWidth(); }