Example #1
0
        public static void SaveEnvironmentDefinition()
        {
            EnvironmentDefinition.SunProperties       = SunProperties;
            EnvironmentDefinition.FogProperties       = FogProperties;
            EnvironmentDefinition.SSAOSettings        = SSAOSettings;
            EnvironmentDefinition.HBAOSettings        = HBAOSettings;
            EnvironmentDefinition.PostProcessSettings = MyPostprocessSettingsWrapper.Settings;
            EnvironmentDefinition.ShadowSettings.CopyFrom(ShadowSettings);

            var save = new MyObjectBuilder_Definitions();

            save.Environments = new MyObjectBuilder_EnvironmentDefinition[] { (MyObjectBuilder_EnvironmentDefinition)EnvironmentDefinition.GetObjectBuilder() };
            save.Save(Path.Combine(MyFileSystem.ContentPath, "Data", "Environment.sbc"));
        }