Bazaar developer reference

CvCity::getExtraProductionDifference(int, ProjectTypes) const

Defined in
CvCity.cpp, line 5911
Class
CvCity
Hook name
CivHooks::CvCity_getExtraProductionDifference_with_int_ProjectTypes_const

Hooks

static bool BeforeCvCity_getExtraProductionDifference_with_int_ProjectTypes_const(const CvCity* self, int iExtra, ProjectTypes eProject, int& result);static void AfterCvCity_getExtraProductionDifference_with_int_ProjectTypes_const(const CvCity* self, int iExtra, ProjectTypes eProject, int& result);static int ReplaceCvCity_getExtraProductionDifference_with_int_ProjectTypes_const(int (*original)(const CvCity*, int, ProjectTypes), const CvCity* self, int iExtra, ProjectTypes eProject);CivRegisterBefore<CivHooks::CvCity_getExtraProductionDifference_with_int_ProjectTypes_const>(host, &BeforeCvCity_getExtraProductionDifference_with_int_ProjectTypes_const);CivRegisterAfter<CivHooks::CvCity_getExtraProductionDifference_with_int_ProjectTypes_const>(host, &AfterCvCity_getExtraProductionDifference_with_int_ProjectTypes_const);CivRegisterReplace<CivHooks::CvCity_getExtraProductionDifference_with_int_ProjectTypes_const>(host, &ReplaceCvCity_getExtraProductionDifference_with_int_ProjectTypes_const);

Code

5911int CvCity::getExtraProductionDifference(int iExtra, ProjectTypes eProject) const5912{5913	VALIDATE_OBJECT5914	return getExtraProductionDifference(iExtra, getProductionModifier(eProject));5915}

Calls