public override MyObjectBuilder_DefinitionBase GetObjectBuilder()
        {
            var result = new MyObjectBuilder_EnvironmentDefinition()
            {
                EnvironmentTexture       = this.BackgroundTexture,
                SmallShipMaxSpeed        = this.SmallShipMaxSpeed,
                LargeShipMaxSpeed        = this.LargeShipMaxSpeed,
                SmallShipMaxAngularSpeed = this.m_smallShipMaxAngularSpeed,
                LargeShipMaxAngularSpeed = this.m_largeShipMaxAngularSpeed,
                EnvironmentOrientation   = new MyOrientation(
                    MathHelper.ToDegrees(BackgroundOrientation.Yaw),
                    MathHelper.ToDegrees(BackgroundOrientation.Pitch),
                    MathHelper.ToDegrees(BackgroundOrientation.Roll)),
            };

            FogProperties.Serialize(result);
            SunProperties.Serialize(result);
            return(result);
        }
        public override MyObjectBuilder_DefinitionBase GetObjectBuilder()
        {
            var result = new MyObjectBuilder_EnvironmentDefinition()
            {
                EnvironmentTexture       = this.BackgroundTexture,
                SmallShipMaxSpeed        = this.SmallShipMaxSpeed,
                LargeShipMaxSpeed        = this.LargeShipMaxSpeed,
                EnvironmentalParticles   = this.EnvironmentalParticles,
                SmallShipMaxAngularSpeed = this.m_smallShipMaxAngularSpeed,
                LargeShipMaxAngularSpeed = this.m_largeShipMaxAngularSpeed,
                EnvironmentOrientation   = new MyOrientation(
                    MathHelper.ToDegrees(BackgroundOrientation.Yaw),
                    MathHelper.ToDegrees(BackgroundOrientation.Pitch),
                    MathHelper.ToDegrees(BackgroundOrientation.Roll)),
                ContourHighlightColor     = this.ContourHighlightColor.ToVector4(),
                ContourHighlightThickness = this.ContourHighlightThickness
            };

            FogProperties.Serialize(result);
            SunProperties.Serialize(result);
            return(result);
        }