コード例 #1
0
        internal static void GameSpecificSetup(Harmony harmony)
        {
            Assert.IsNotNull(harmony);
            SceneManager.activeSceneChanged += SceneChanged;
            ExtendedSave.CardBeingSaved     += CardBeingSaved;
            TranslationHelper.CardTranslationBehaviorChanged += TranslationHelperCardTranslationBehaviorChanged;
            CharaFileInfoWrapper.RegisterWrapperType(typeof(CustomFileInfo), typeof(CustomFileInfoWrapper));


            if (KoikatuAPI.IsSteamRelease())
            {
                Party.Hooks.Setup();
            }
            else
            {
                Standard.Hooks.Setup();
            }
        }
コード例 #2
0
 internal static void Setup()
 {
     CharaFileInfoWrapper.RegisterWrapperType(typeof(CustomFileInfo), typeof(CustomFileInfoWrapper));
     Harmony.CreateAndPatchAll(typeof(Hooks));
 }