예제 #1
0
        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();
        }
예제 #2
0
        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();
        }