AddConnection() public method

public AddConnection ( NodeConnection connection ) : void
connection NodeConnection
return void
Beispiel #1
0
        public virtual NodeConnection ConnectNodes(BaseNode from, BaseNode to)
        {
            if (from == null ||
                to == null)
            {
                return(null);
            }
            NodeConnection c = new NodeConnection(from, to);

            from.AddConnection(c);
            to.AddConnection(c);
            return(c);
        }
Beispiel #2
0
 public virtual NodeConnection ConnectNodes(BaseNode from, BaseNode to) {
     if (from == null ||
         to == null)
         return null;
     NodeConnection c = new NodeConnection(from, to);
     from.AddConnection(c);
     to.AddConnection(c);
     return c;
 }