public override MyObjectBuilder_DefinitionBase GetObjectBuilder()
        {
            MyObjectBuilder_VoxelMaterialDefinition ob = (MyObjectBuilder_VoxelMaterialDefinition)base.GetObjectBuilder();

            ob.MinedOre          = this.MinedOre;
            ob.MinedOreRatio     = this.MinedOreRatio;
            ob.CanBeHarvested    = this.CanBeHarvested;
            ob.IsRare            = this.IsRare;
            ob.DamageRatio       = this.DamageRatio;
            ob.DiffuseXZ         = this.DiffuseXZ;
            ob.DiffuseY          = this.DiffuseY;
            ob.NormalXZ          = this.NormalXZ;
            ob.NormalY           = this.NormalY;
            ob.SpecularPower     = this.SpecularPower;
            ob.SpecularShininess = this.SpecularShininess;

            return(ob);
        }
Exemple #2
0
        public override MyObjectBuilder_DefinitionBase GetObjectBuilder()
        {
            MyObjectBuilder_VoxelMaterialDefinition ob = (MyObjectBuilder_VoxelMaterialDefinition)base.GetObjectBuilder();

            ob.MaterialTypeName     = MaterialTypeName;
            ob.MinedOre             = MinedOre;
            ob.MinedOreRatio        = MinedOreRatio;
            ob.CanBeHarvested       = CanBeHarvested;
            ob.IsRare               = IsRare;
            ob.SpawnsInAsteroids    = SpawnsInAsteroids;
            ob.SpawnsFromMeteorites = SpawnsFromMeteorites;
            ob.DamageRatio          = DamageRatio;
            ob.DiffuseXZ            = DiffuseXZ;
            ob.DiffuseY             = DiffuseY;
            ob.NormalXZ             = NormalXZ;
            ob.NormalY              = NormalY;
            ob.SpecularPower        = SpecularPower;
            ob.SpecularShininess    = SpecularShininess;
            ob.ParticleEffect       = ParticleEffect.ToString();
            ob.DamagedMaterial      = DamagedMaterial.ToString();
            ob.DamageThreashold     = DamageThreshold / 255f;

            return(ob);
        }