Bazaar developer reference

CvCity::setProjectProduction(ProjectTypes, int)

Defined in
CvCity.cpp, line 11370
Class
CvCity
Hook name
CivHooks::CvCity_setProjectProduction

Hooks

static bool BeforeCvCity_setProjectProduction(CvCity* self, ProjectTypes eIndex, int iNewValue);static void AfterCvCity_setProjectProduction(CvCity* self, ProjectTypes eIndex, int iNewValue);static void ReplaceCvCity_setProjectProduction(void (*original)(CvCity*, ProjectTypes, int), CvCity* self, ProjectTypes eIndex, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setProjectProduction>(host, &BeforeCvCity_setProjectProduction);CivRegisterAfter<CivHooks::CvCity_setProjectProduction>(host, &AfterCvCity_setProjectProduction);CivRegisterReplace<CivHooks::CvCity_setProjectProduction>(host, &ReplaceCvCity_setProjectProduction);

Code

11370void CvCity::setProjectProduction(ProjectTypes eIndex, int iNewValue)11371{11372	VALIDATE_OBJECT11373	setProjectProductionTimes100(eIndex, iNewValue*100);11374}

Calls

Called by