Example #1
0
        public Schematic Clone()
        {
            Schematic clone = this.MemberwiseClone() as Schematic;

            //
            if (this.Item != null)
            {
                clone.Item = this.Item.Clone();
            }
            if (this.Mat1 != null)
            {
                clone.Mat1 = this.Mat1.Clone();
            }
            if (this.Mat2 != null)
            {
                clone.Mat2 = this.Mat2.Clone();
            }
            if (this.Mat3 != null)
            {
                clone.Mat3 = this.Mat3.Clone();
            }
            if (this.Mat4 != null)
            {
                clone.Mat4 = this.Mat4.Clone();
            }
            if (this.Mat5 != null)
            {
                clone.Mat5 = this.Mat5.Clone();
            }
            if (this.Research1 != null)
            {
                clone.Research1 = this.Research1.Clone();
            }
            if (this.Research2 != null)
            {
                clone.Research2 = this.Research2.Clone();
            }
            if (this.Research3 != null)
            {
                clone.Research3 = this.Research3.Clone();
            }
            //
            return(clone);
        }
Example #2
0
 public void LoadObject(Models.GameObject loadMe, GomObject obj)
 {
     GomLib.Models.Schematic sch = (Models.Schematic)loadMe;
     Load(sch, obj);
 }