Bazaar developer reference

CvCity::changeUnitProduction(UnitTypes, int)

Defined in
CvCity.cpp, line 11542
Class
CvCity
Hook name
CivHooks::CvCity_changeUnitProduction

Hooks

static bool BeforeCvCity_changeUnitProduction(CvCity* self, UnitTypes eIndex, int iChange);static void AfterCvCity_changeUnitProduction(CvCity* self, UnitTypes eIndex, int iChange);static void ReplaceCvCity_changeUnitProduction(void (*original)(CvCity*, UnitTypes, int), CvCity* self, UnitTypes eIndex, int iChange);CivRegisterBefore<CivHooks::CvCity_changeUnitProduction>(host, &BeforeCvCity_changeUnitProduction);CivRegisterAfter<CivHooks::CvCity_changeUnitProduction>(host, &AfterCvCity_changeUnitProduction);CivRegisterReplace<CivHooks::CvCity_changeUnitProduction>(host, &ReplaceCvCity_changeUnitProduction);

Code

11542void CvCity::changeUnitProduction(UnitTypes eIndex, int iChange)11543{11544	VALIDATE_OBJECT11545	changeUnitProductionTimes100(eIndex, iChange * 100);11546}

Calls

Called by