Bazaar developer reference

CvCity::setSpecialistProduction(SpecialistTypes, int)

Defined in
CvCity.cpp, line 11438
Class
CvCity
Hook name
CivHooks::CvCity_setSpecialistProduction

Hooks

static bool BeforeCvCity_setSpecialistProduction(CvCity* self, SpecialistTypes eIndex, int iNewValue);static void AfterCvCity_setSpecialistProduction(CvCity* self, SpecialistTypes eIndex, int iNewValue);static void ReplaceCvCity_setSpecialistProduction(void (*original)(CvCity*, SpecialistTypes, int), CvCity* self, SpecialistTypes eIndex, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setSpecialistProduction>(host, &BeforeCvCity_setSpecialistProduction);CivRegisterAfter<CivHooks::CvCity_setSpecialistProduction>(host, &AfterCvCity_setSpecialistProduction);CivRegisterReplace<CivHooks::CvCity_setSpecialistProduction>(host, &ReplaceCvCity_setSpecialistProduction);

Code

11438void CvCity::setSpecialistProduction(SpecialistTypes eIndex, int iNewValue)11439{11440	VALIDATE_OBJECT11441	setSpecialistProductionTimes100(eIndex, iNewValue*100);11442}

Calls

Called by