public static void Postfix()
        {
            //DefsUtil.EnableMountainSettings = true;
            //DefsUtil.Enable = true;
            if (buMtnValue != null)
            {
                MapSettings.Mountain = buMtnValue;
                buMtnValue           = null;
            }
            if (buWaterValue != null)
            {
                MapSettings.Water = buWaterValue;
                buWaterValue      = null;
            }

            DefsUtil.Restore();
        }
Exemple #2
0
        public override void ExposeData()
        {
            if (WorldSettings == null)
            {
                WorldSettings = new WorldSettings();
            }
            if (MapSettings == null)
            {
                MapSettings = new MapSettings();
            }

            base.ExposeData();
            Scribe_Deep.Look(ref WorldSettings, "WorldSettings");
            Scribe_Deep.Look(ref MapSettings, "MapSettings");

            if (Scribe.mode == LoadSaveMode.Saving)
            {
                CurrentSettings.ApplySettings(cgFieldValues);
            }

            DefsUtil.Restore();
        }