Example #1
0
        public override void Load()
        {
            if (!_initiated)
            {
                throw new Exception("Localizer not initialized.");
            }

            State = OperationTiming.BeforeModLoad;
            Hooks.InvokeBeforeLoad();
            Kernel.Get <RefreshLanguageService>();

            UIModsPatch.Patch();
        }
Example #2
0
 private static void AfterLocalizerCtorHook(object mod)
 {
     Hooks.InvokeBeforeModCtor(mod);
 }
Example #3
0
 public override void UpdateUI(GameTime gameTime)
 {
     Hooks.InvokeOnGameUpdate(gameTime);
 }
Example #4
0
        public override void PostAddRecipes()
        {
            State = OperationTiming.PostContentLoad;

            Hooks.InvokePostSetupContent();
        }
Example #5
0
 public override void PostSetupContent()
 {
     State = OperationTiming.BeforeContentLoad;
     Hooks.InvokeBeforeSetupContent();
     CheckUpdate();
 }