CvGlobals::getNumEraInfos()
- Defined in
- CvGlobals.cpp, line 3930
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumEraInfos
Hooks
static bool BeforeCvGlobals_getNumEraInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumEraInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumEraInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumEraInfos>(host, &BeforeCvGlobals_getNumEraInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumEraInfos>(host, &AfterCvGlobals_getNumEraInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumEraInfos>(host, &ReplaceCvGlobals_getNumEraInfos);
Code
3930int CvGlobals::getNumEraInfos()3931{3932 return (int)m_aEraInfo.size();3933}
Calls
std::vector::size
Called by
- CultureHelpers::GetThemingBonusIndex(PlayerTypes, CvBuildingEntry *, vector<int> &)
- CvDllGameContext::GetNumEraInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPreGame::setEra(const CvString &)
- CvReligionAI::ScoreBeliefForPlayer(CvBeliefEntry *)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- LeagueHelpers::GetNextGameEraForTrigger(EraTypes)
- CvWorldBuilderMapLoader::GetMapPreview(lua_State *)
- SetPlayerInitialItems(CvPlayer &, const CvWorldBuilderMap::Player &)