Ejemplo n.º 1
0
        /// <summary>Runs when SMAPI loads this mod.</summary>
        /// <param name="helper">This mod's API for most SMAPI features.</param>
        public override void Entry(IModHelper helper)
        {
            Instance = this;                                          //set the reference to this mod's current instance
            Harmony harmony = new Harmony(this.ModManifest.UniqueID); //create a Harmony instance for this mod

            //apply all Harmony patches
            HarmonyPatch_ItemDeliveryQuest.ApplyPatch(harmony);
            HarmonyPatch_SocializeQuest.ApplyPatch(harmony);
            HarmonyPatch_WinterStarGifts.ApplyPatch(harmony);
            HarmonyPatch_ShopDialog.ApplyPatch(harmony);
            HarmonyPatch_IslandVisit.ApplyPatch(harmony, helper);
            HarmonyPatch_PerfectionFriendship.ApplyPatch(harmony);
            HarmonyPatch_MovieInvitation.ApplyPatch(harmony);
            HarmonyPatch_Greetings.ApplyPatch(harmony);
        }
Ejemplo n.º 2
0
        /// <summary>Runs when SMAPI loads this mod.</summary>
        /// <param name="helper">This mod's API for most SMAPI features.</param>
        public override void Entry(IModHelper helper)
        {
            //initialize static helpers
            Instance = this;
            InitializeDataHelper(helper);

            //initialize Harmony and apply all patches
            Harmony harmony = new Harmony(this.ModManifest.UniqueID);

            HarmonyPatch_ItemDeliveryQuest.ApplyPatch(harmony);
            HarmonyPatch_SocializeQuest.ApplyPatch(harmony);
            HarmonyPatch_WinterStarGifts.ApplyPatch(harmony);
            HarmonyPatch_ShopDialog.ApplyPatch(harmony);
            HarmonyPatch_IslandVisit.ApplyPatch(harmony, helper);
            HarmonyPatch_PerfectionFriendship.ApplyPatch(harmony);
            HarmonyPatch_MovieInvitation.ApplyPatch(harmony);
            HarmonyPatch_Greetings.ApplyPatch(harmony);
            HarmonyPatch_BirthdayCalendar.ApplyPatch(harmony);
        }