コード例 #1
0
ファイル: Core.FKIK.cs プロジェクト: thojmr/KK_Plugins
        internal void Main()
        {
            Instance = this;
            Logger   = base.Logger;
            var harmony = Harmony.CreateAndPatchAll(typeof(Hooks));

            harmony.Patch(typeof(MPCharCtrl).GetNestedType("IKInfo", AccessTools.all).GetMethod("Init"), null, new HarmonyMethod(typeof(UI).GetMethod(nameof(UI.InitUI), AccessTools.all)));
            harmony.Patch(typeof(MPCharCtrl).GetNestedType("IKInfo", AccessTools.all).GetMethod("UpdateInfo"), null, new HarmonyMethod(typeof(UI).GetMethod(nameof(UI.UpdateUI), AccessTools.all)));
        }
コード例 #2
0
 internal void Main()
 {
     Instance = this;
     Logger   = base.Logger;
     Harmony.CreateAndPatchAll(typeof(Hooks));
 }