/// <summary>Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations.</summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event arguments.</param>
        private void OnGameLaunched(object sender, GameLaunchedEventArgs e)
        {
            var modManifest = Helper.ModRegistry.Get("KoihimeNakamura.summitreborn");

            if (modManifest != null)
            {
                SummitRebornLoaded = true;
                Logger.Log("Summit Reborn loaded. Disabling summit redraw.");
            }

            //testing for ZA MOON, YOUR HIGHNESS.
            MoonAPI          = SDVUtilities.GetModApi <Integrations.ILunarDisturbancesAPI>(Monitor, Helper, "KoihimeNakamura.LunarDisturbances", "1.0", "Lunar Disturbances");
            SafeLightningAPI = SDVUtilities.GetModApi <Integrations.ISafeLightningAPI>(Monitor, Helper, "cat.safelightning", "1.0", "Safe Lightning");
            DynamicNightAPI  = SDVUtilities.GetModApi <Integrations.IDynamicNightAPI>(Monitor, Helper, "knakamura.dynamicnighttime", "1.1-rc3", "Dynamic Night Time");

            if (MoonAPI != null)
            {
                UseLunarDisturbancesApi = true;
            }

            if (SafeLightningAPI != null)
            {
                UseSafeLightningApi = true;
            }

            if (DynamicNightAPI != null)
            {
                UseDynamicNightApi = true;
            }
        }
Ejemplo n.º 2
0
        /// <summary>Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations.</summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event arguments.</param>
        private void OnGameLaunched(object sender, GameLaunchedEventArgs e)
        {
            //testing for ZA MOON, YOUR HIGHNESS.
            MoonAPI          = SDVUtilities.GetModApi <Integrations.ILunarDisturbancesAPI>(Monitor, Helper, "KoihimeNakamura.LunarDisturbances", "1.0");
            SafeLightningAPI = SDVUtilities.GetModApi <Integrations.ISafeLightningAPI>(Monitor, Helper, "cat.safelightning", "1.0");
            DynamicNightAPI  = SDVUtilities.GetModApi <Integrations.IDynamicNightAPI>(Monitor, Helper, "knakamura.dynamicnighttime", "1.1-rc3");

            if (MoonAPI != null)
            {
                UseLunarDisturbancesApi = true;
            }

            if (SafeLightningAPI != null)
            {
                UseSafeLightningApi = true;
            }

            if (DynamicNightAPI != null)
            {
                UseDynamicNightApi = true;
            }
        }