static MyFogProperties()
 {
     Default = new MyFogProperties()
     {
         FogMultiplier = Defaults.FogMultiplier,
         FogDensity = Defaults.FogDensity,
         FogColor = Defaults.FogColor
     };
 }
Exemple #2
0
 static MyFogProperties()
 {
     Default = new MyFogProperties()
     {
         FogMultiplier = Defaults.FogMultiplier,
         FogDensity    = Defaults.FogDensity,
         FogColor      = Defaults.FogColor
     };
 }
        protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);

            MyObjectBuilder_VisualSettingsDefinition objBuilder = (MyObjectBuilder_VisualSettingsDefinition)builder;
            FogProperties = objBuilder.FogProperties;
            SunProperties = objBuilder.SunProperties;
            PostProcessSettings = objBuilder.PostProcessSettings;
            ShadowSettings.CopyFrom(objBuilder.ShadowSettings);
        }
        protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);

            MyObjectBuilder_VisualSettingsDefinition objBuilder = (MyObjectBuilder_VisualSettingsDefinition)builder;

            FogProperties       = objBuilder.FogProperties;
            SunProperties       = objBuilder.SunProperties;
            PostProcessSettings = objBuilder.PostProcessSettings;
            ShadowSettings.CopyFrom(objBuilder.ShadowSettings);
        }