Bazaar developer reference

CvCity::setProductionTimes100(int)

Defined in
CvCity.cpp, line 5412
Class
CvCity
Hook name
CivHooks::CvCity_setProductionTimes100

Hooks

static bool BeforeCvCity_setProductionTimes100(CvCity* self, int iNewValue);static void AfterCvCity_setProductionTimes100(CvCity* self, int iNewValue);static void ReplaceCvCity_setProductionTimes100(void (*original)(CvCity*, int), CvCity* self, int iNewValue);CivRegisterBefore<CivHooks::CvCity_setProductionTimes100>(host, &BeforeCvCity_setProductionTimes100);CivRegisterAfter<CivHooks::CvCity_setProductionTimes100>(host, &AfterCvCity_setProductionTimes100);CivRegisterReplace<CivHooks::CvCity_setProductionTimes100>(host, &ReplaceCvCity_setProductionTimes100);

Code

5412void CvCity::setProductionTimes100(int iNewValue)5413{5414	VALIDATE_OBJECT5415	if(isProductionUnit())5416	{5417		setUnitProductionTimes100(getProductionUnit(), iNewValue);5418	}5419	else if(isProductionBuilding())5420	{5421		m_pCityBuildings->SetBuildingProductionTimes100(getProductionBuilding(), iNewValue);5422	}5423	else if(isProductionProject())5424	{5425		setProjectProductionTimes100(getProductionProject(), iNewValue);5426	}5427	else if(isProductionSpecialist())5428	{5429		setSpecialistProductionTimes100(getProductionSpecialist(), iNewValue);5430	}5431}

Calls