AcManager.Tools.Objects.WeatherObject.SaveExtended C# (CSharp) Method

SaveExtended() private method

private SaveExtended ( IniFile ini ) : void
ini IniFile
return void
        private void SaveExtended(IniFile ini) {
            ini.SetCommentaries(IniCommentaries);

            var clouds = ini["CLOUDS"];
            clouds.Set("COVER", CloudsCover);
            clouds.Set("CUTOFF", CloudsCutoff);
            clouds.Set("COLOR", CloudsColor);
            clouds.Set("WIDTH", CloudsWidth);
            clouds.Set("HEIGHT", CloudsHeight);
            clouds.Set("RADIUS", CloudsRadius);
            clouds.Set("NUMBER", CloudsNumber);
            clouds.Set("BASE_SPEED_MULT", CloudsSpeedMultipler * 0.01);

            var fog = ini["FOG"];
            fog.Set("COLOR", new [] {
                FogColor.R, FogColor.G, FogColor.B
            }.Select(x => (x * FogColorMultipler / 255d).Round(0.1)));
            fog.Set("BLEND", FogBlend);
            fog.Set("DISTANCE", FogDistance);

            ini["CAR_LIGHTS"].Set("FORCE_ON", ForceCarLights);
        }
        #endregion