示例#1
0
        protected void MakeNodes(Type componentType, Component component)
        {
            this.nodeProvider.OnComponentAdded(component, componentType);
            NodesToChange nodesToChange = this.nodeCache.GetNodesToChange(this, componentType);

            foreach (NodeDescription description in nodesToChange.NodesToAdd)
            {
                this.AddNode(description);
            }
            foreach (NodeDescription description2 in nodesToChange.NodesToRemove)
            {
                this.RemoveNode(description2);
            }
        }
示例#2
0
 public NodesToChange Clone(NodesToChange original) =>
 new NodesToChange
 {
     NodesToAdd    = new List <NodeDescription>(original.NodesToAdd),
     NodesToRemove = new List <NodeDescription>(original.NodesToRemove)
 };