CvGlobals::getNumPlotInfos()
- Defined in
- CvGlobals.cpp, line 2714
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumPlotInfos
Hooks
static bool BeforeCvGlobals_getNumPlotInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumPlotInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumPlotInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumPlotInfos>(host, &BeforeCvGlobals_getNumPlotInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumPlotInfos>(host, &AfterCvGlobals_getNumPlotInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumPlotInfos>(host, &ReplaceCvGlobals_getNumPlotInfos);
Code
2713#if defined(MOD_API_PLOT_YIELDS)2714int CvGlobals::getNumPlotInfos()2715{2716 return MOD_API_PLOT_YIELDS ? (int)m_paPlotInfo.size() : 0;2717}
Calls
- CustomMods::isAPI_PLOT_YIELDS()
std::vector::size
Called by
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::read(FDataStream &)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvCity::uninit()
- CvCity::write(FDataStream &) const
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::reset(PlayerTypes, bool)
- CvPlayerTraits::InitPlayerTraits()
- CvPlayerTraits::Reset()