﻿using ICities;

namespace FogOptions
{
    public class LoadingExtension : LoadingExtensionBase
    {
        public override void OnLevelLoaded(LoadMode mode)
        {
            base.OnLevelLoaded(mode);
            if (mode == LoadMode.LoadMap || mode == LoadMode.NewMap)
            {
                return;
            }
            FogController.Initialize();
        }

        public override void OnLevelUnloading()
        {
            base.OnLevelUnloading();
            FogController.Dispose();
        }
    }
}
﻿using ICities;

namespace FogOptions
{
    public class LoadingExtension : LoadingExtensionBase
    {
        public override void OnLevelLoaded(LoadMode mode)
        {
            base.OnLevelLoaded(mode);
            FogController.Initialize();
        }

        public override void OnLevelUnloading()
        {
            base.OnLevelUnloading();
            FogController.Dispose();
        }
    }
}
Disable fog and clouds in all game modes
Disable fog and clouds in all game modes
