Example #1
0
        public MyPlanetMaterialPlacementRule(MyPlanetMaterialPlacementRule copyFrom)
        {
            // Rule data
            Height    = copyFrom.Height;
            Latitude  = copyFrom.Latitude;
            Longitude = copyFrom.Longitude;
            Slope     = copyFrom.Slope;

            // Material data
            Material = copyFrom.Material;
            Value    = copyFrom.Value;
            MaxDepth = copyFrom.MaxDepth;
            Layers   = copyFrom.Layers;
        }
 public PlanetMaterialRule(MyPlanetMaterialPlacementRule def)
     : base(def)
 {
     Height = def.Height;
     Latitude = def.Latitude;
     Longitude = def.Longitude;
     Slope = def.Slope;
 }
Example #3
0
        public object Clone()
        {
            MyPlanetMaterialPlacementRule clonedRule = new MyPlanetMaterialPlacementRule(this);

            return(clonedRule);
        }
        public MyPlanetMaterialPlacementRule(MyPlanetMaterialPlacementRule copyFrom)
        {
            // Rule data
            Height = copyFrom.Height;
            Latitude = copyFrom.Latitude;
            Longitude = copyFrom.Longitude;
            Slope = copyFrom.Slope;

            // Material data
            Material = copyFrom.Material;
            Value = copyFrom.Value;
            MaxDepth = copyFrom.MaxDepth;
            Layers = copyFrom.Layers;
        }
 public object Clone()
 {
     MyPlanetMaterialPlacementRule clonedRule = new MyPlanetMaterialPlacementRule(this);
     return clonedRule;
 }