Bazaar developer reference

CvGlobals::getNumGreatPersonInfos()

Defined in
CvGlobals.cpp, line 2740
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getNumGreatPersonInfos

Hooks

static bool BeforeCvGlobals_getNumGreatPersonInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumGreatPersonInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumGreatPersonInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumGreatPersonInfos>(host, &BeforeCvGlobals_getNumGreatPersonInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumGreatPersonInfos>(host, &AfterCvGlobals_getNumGreatPersonInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumGreatPersonInfos>(host, &ReplaceCvGlobals_getNumGreatPersonInfos);

Code

2739#if defined(MOD_API_UNIFIED_YIELDS)2740int CvGlobals::getNumGreatPersonInfos()2741{2742	return MOD_API_UNIFIED_YIELDS ? (int)m_paGreatPersonInfo.size() : 0;2743}

Calls

Called by