Esempio n. 1
0
        private void GameLoop_GameLaunched(object sender, GameLaunchedEventArgs e)
        {
            // IPurrplingCoreApi core = this.Helper.ModRegistry.GetApi<IPurrplingCoreApi>("PurrplingCat.PurrplingCore");
            IManagedQuestApi questApi = this.Helper
                                        .ModRegistry
                                        .GetApi <IQuestApi>("PurrplingCat.QuestFramework")
                                        .GetManagedApi(this.ModManifest);

            // core.Events.OnSellItem += this.OnSellItem;

            // Expose QF custom quest types
            questApi.ExposeQuestType <SellItemQuest>("SellItem");
            questApi.ExposeQuestType <EarnMoneyQuest>("EarnMoney");
            questApi.ExposeQuestType <TalkQuest>("Talk");
        }
Esempio n. 2
0
        private void GameLoop_GameLaunched(object sender, GameLaunchedEventArgs e)
        {
            IManagedQuestApi questApi = this.Helper
                                        .ModRegistry
                                        .GetApi <IQuestApi>("PurrplingCat.QuestFramework")
                                        .GetManagedApi(this.ModManifest);

            // Expose QF custom quest types
            questApi.ExposeQuestType <SellItemQuest>("SellItem");
            questApi.ExposeQuestType <EarnMoneyQuest>("EarnMoney");
            questApi.ExposeQuestType <TalkQuest>("Talk");
            questApi.ExposeQuestType <AdventureQuest>("Adventure");
            questApi.ExposeQuestType <CollectQuest>("Collect");

            QuestApi = questApi;
        }