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

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

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

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