Exemple #1
0
 private void CreateConnectionInLoad(NodeConnectionData data)
 {
     if (connections == null)
     {
         connections = new List <Connection>();
     }
     connections.Add(Connection.CreateConnectionInLoad(data));
 }
Exemple #2
0
        public static Connection CreateConnectionInRuntime(NodeConnectionData data)
        {
            Connection    c   = new Connection(data);
            NodePointData inP = NodeGUIUtility.GetInstance <NodePointData>(data.inGUID)
            , outP            = NodeGUIUtility.GetInstance <NodePointData>(data.outGUID);

            inP.connections.Add(data.GUID);
            outP.connections.Add(data.GUID);
            return(c);
        }
Exemple #3
0
 public void CopyData(NodeConnectionData other)
 {
     GUID    = other.GUID;
     inGUID  = other.inGUID;
     outGUID = other.outGUID;
 }
Exemple #4
0
 public Connection(NodeConnectionData data)
 {
     NodeGUIUtility.AddInstance(data);
     this.data = data;
 }
Exemple #5
0
 public static Connection CreateConnectionInLoad(NodeConnectionData data)
 {
     return(new Connection(data));
 }