CvGlobals::getNumQuestInfos()
- Defined in
- CvGlobals.cpp, line 2929
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumQuestInfos
Hooks
static bool BeforeCvGlobals_getNumQuestInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumQuestInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumQuestInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumQuestInfos>(host, &BeforeCvGlobals_getNumQuestInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumQuestInfos>(host, &AfterCvGlobals_getNumQuestInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumQuestInfos>(host, &ReplaceCvGlobals_getNumQuestInfos);
Code
2928#if defined(MOD_EVENTS_QUESTS)2929int CvGlobals::getNumQuestInfos()2930{2931 return MOD_EVENTS_QUESTS ? m_paQuestInfo.size() : NUM_MINOR_CIV_QUEST_TYPES;2932}
Calls
- CustomMods::isEVENTS_QUESTS()
std::vector::size
Called by
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvMinorCivAI::AddQuestForPlayer(PlayerTypes, MinorCivQuestTypes, int)
- CvMinorCivAI::AddQuestIfAble(PlayerTypes, MinorCivQuestTypes)
- CvMinorCivAI::DoCompletedQuestsForPlayer(PlayerTypes, MinorCivQuestTypes)
- CvMinorCivAI::DoObsoleteQuestsForPlayer(PlayerTypes, MinorCivQuestTypes)
- CvMinorCivAI::DoTestStartGlobalQuest()
- CvMinorCivAI::DoTestStartPersonalQuest(PlayerTypes)
- CvMinorCivAI::IsActiveQuestForPlayer(PlayerTypes, MinorCivQuestTypes)
- CvMinorCivAI::IsDisplayedQuestForPlayer(PlayerTypes, MinorCivQuestTypes)