Bazaar developer reference

CvBuildingEntry::GetNumCityCostMod() const

Defined in
CvBuildingClasses.cpp, line 942
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetNumCityCostMod

Hooks

static bool BeforeCvBuildingEntry_GetNumCityCostMod(const CvBuildingEntry* self, int& result);static void AfterCvBuildingEntry_GetNumCityCostMod(const CvBuildingEntry* self, int& result);static int ReplaceCvBuildingEntry_GetNumCityCostMod(int (*original)(const CvBuildingEntry*), const CvBuildingEntry* self);CivRegisterBefore<CivHooks::CvBuildingEntry_GetNumCityCostMod>(host, &BeforeCvBuildingEntry_GetNumCityCostMod);CivRegisterAfter<CivHooks::CvBuildingEntry_GetNumCityCostMod>(host, &AfterCvBuildingEntry_GetNumCityCostMod);CivRegisterReplace<CivHooks::CvBuildingEntry_GetNumCityCostMod>(host, &ReplaceCvBuildingEntry_GetNumCityCostMod);

Code

941/// Additional cost based on the number of cities in the empire942int CvBuildingEntry::GetNumCityCostMod() const943{944	return m_iNumCityCostMod;945}

Called by