public override void OnCreated(ILoading loading) { base.OnCreated(loading); Instance = this; harmonyExt = new HarmonyExtension(); harmonyExt.InstallHarmony(); }
public static void Load(LoadMode mode = LoadMode.NewGame) { HelpersExtensions.VERBOSE = false; Log.Info("LifeCycle.Load() called"); CSURUtil.Init(); HarmonyExtension.InstallHarmony(); NodeControllerTool.Create(); if (Settings.GameConfig == null) { switch (mode) { case LoadMode.NewGameFromScenario: case LoadMode.LoadScenario: case LoadMode.LoadMap: // no NC or old NC Settings.GameConfig = GameConfigT.LoadGameDefault; break; default: Settings.GameConfig = GameConfigT.NewGameDefault; break; } } NodeManager.Instance.OnLoad(); SegmentEndManager.Instance.OnLoad(); }
public void OnEnabled() { harmonyExt = new HarmonyExtension(); harmonyExt.InstallHarmony(); }