Bazaar developer reference

CvCity::setUnitProduction(UnitTypes, int)

Defined in
CvCity.cpp, line 11534
Class
CvCity
Hook name
CivHooks::CvCity_setUnitProduction

Hooks

static bool BeforeCvCity_setUnitProduction(CvCity* self, UnitTypes eIndex, int iNewValue);static void AfterCvCity_setUnitProduction(CvCity* self, UnitTypes eIndex, int iNewValue);static void ReplaceCvCity_setUnitProduction(void (*original)(CvCity*, UnitTypes, int), CvCity* self, UnitTypes eIndex, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setUnitProduction>(host, &BeforeCvCity_setUnitProduction);CivRegisterAfter<CivHooks::CvCity_setUnitProduction>(host, &AfterCvCity_setUnitProduction);CivRegisterReplace<CivHooks::CvCity_setUnitProduction>(host, &ReplaceCvCity_setUnitProduction);

Code

11534void CvCity::setUnitProduction(UnitTypes eIndex, int iNewValue)11535{11536	VALIDATE_OBJECT11537	setUnitProductionTimes100(eIndex, iNewValue * 100);11538}

Calls

Called by