Beispiel #1
0
 public virtual BaseConnection NewConnection(BaseNode from, string fromPortName, BaseNode to, string toPortName)
 {
     return(BaseConnection.CreateNew <BaseConnection>(from, fromPortName, to, toPortName));
 }
Beispiel #2
0
 //断开连接
 public void Disconnect(BaseNode node, string portName)
 {
     Disconnect(node.Ports[portName]);
 }
Beispiel #3
0
 public virtual BaseNode NewNode(Type type, Vector2 position)
 {
     return(BaseNode.CreateNew(this, type, position));
 }
Beispiel #4
0
 /// <summary> 给节点分配一个GUID,这将会覆盖已有GUID </summary>
 public static void IDAllocation(BaseNode node, BaseGraph graph)
 {
     node.guid = graph.GenerateNodeGUID();
 }