Пример #1
0
        ///<summary>Creates a serializable version of this edge.</summary>
        /// <returns>A serializable version of this edge.</returns>
        public SerializableEdge ToSerializedEgde()
        {
            SerializableEdge s = new SerializableEdge();

            s.InputNodeId       = Input.Parent.Id;
            s.InputSocketIndex  = Input.Parent.Sockets.IndexOf(Input);
            s.OutputNodeId      = Output.Parent.Id;
            s.OutputSocketIndex = Output.Parent.Sockets.IndexOf(Output);
            return(s);
        }
Пример #2
0
 ///<summary>Creates a serializable version of this edge.</summary>
 /// <returns>A serializable version of this edge.</returns>
 public SerializableEdge ToSerializedEgde()
 {
     SerializableEdge s = new SerializableEdge();
     s.InputNodeId = Input.Parent.Id;
     s.InputSocketIndex = Input.Parent.Sockets.IndexOf(Input);
     s.OutputNodeId = Output.Parent.Id;
     s.OutputSocketIndex = Output.Parent.Sockets.IndexOf(Output);
     return s;
 }