Ejemplo n.º 1
0
 public NodeLink GetConnectionTo(Node other)
 {
     return(Item2.GetConnections(Item1).FirstOrDefault(x => IsInput ? x.from == other : x.to == other));
 }
Ejemplo n.º 2
0
 public NodeLink GetConnectionTo(NodeLinkPort other)
 {
     return(Item2.GetConnections(Item1).FirstOrDefault(x => IsInput ? (x.from == other.Node && x.fromField == other.Link.FieldName) : (x.to == other.Node && x.toField == other.Link.FieldName)));
 }
Ejemplo n.º 3
0
 public List <NodeLink> GetConnections()
 {
     return(Item2.GetConnections(Item1));
 }