Ejemplo n.º 1
0
 /// <summary>
 /// Inicializes Node Ports
 /// </summary>
 public void IOInit()
 {
     InputPort.SetParent(this);
     foreach (NodeOutput o in OutputPorts)
     {
         o.SetParent(this);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Assing a new id for this node
 /// </summary>
 public void SetID()
 {
     id = System.Guid.NewGuid().ToString();
     if (InputPort != null)
     {
         InputPort.ClearOutput();
         InputPort.SetParent(this);
     }
     for (int i = 0; i < OutputPorts.Length; i++)
     {
         OutputPorts[i].ClearAll(true);
         OutputPorts[i].SetParent(this);
     }
 }