//==============================================================IO========================================================== public override void SaveAll(IO.ComponentData Compound) { base.SaveAll(Compound); for (int i = 0; i < Joints.Length; i++) { Compound.Add("J" + i.ToString(), Joints[i].ID); } for (int i = 0; i < Wires.Length; i++) { Compound.Add("W" + i.ToString(), Wires[i].ID); } Compound.Add("Left", connectedLeft); Compound.Add("Up", connectedUp); Compound.Add("Right", connectedRight); Compound.Add("Down", connectedDown); Compound.Add("LeftUp", leftUp); Compound.Add("LeftRight", leftRight); Compound.Add("LeftDown", leftDown); Compound.Add("UpRight", upRight); Compound.Add("UpDown", upDown); Compound.Add("RightDown", RightDown); Compound.Add("PortLeft", left.GetHashCode()); Compound.Add("PortUp", up.GetHashCode()); Compound.Add("PortRight", right.GetHashCode()); Compound.Add("PortDown", down.GetHashCode()); }
//============================================================LOGICS======================================================== //==============================================================IO========================================================== public override void SaveAll(IO.ComponentData Compound) { base.SaveAll(Compound); for (int i = 0; i < Joints.Length; i++) { Compound.Add("J" + i.ToString(), Joints[i].ID); } for (int i = 0; i < Wires.Length; i++) { Compound.Add("W" + i.ToString(), Wires[i].ID); } Compound.Add("Left", left.GetHashCode()); Compound.Add("Up", up.GetHashCode()); Compound.Add("Right", right.GetHashCode()); Compound.Add("Down", down.GetHashCode()); Compound.Add("Range", Range); }