Bazaar developer reference

CvCity::getSpecialistProductionTimes100(SpecialistTypes) const

Defined in
CvCity.cpp, line 11453
Class
CvCity
Hook name
CivHooks::CvCity_getSpecialistProductionTimes100

Hooks

static bool BeforeCvCity_getSpecialistProductionTimes100(const CvCity* self, SpecialistTypes eIndex, int& result);static void AfterCvCity_getSpecialistProductionTimes100(const CvCity* self, SpecialistTypes eIndex, int& result);static int ReplaceCvCity_getSpecialistProductionTimes100(int (*original)(const CvCity*, SpecialistTypes), const CvCity* self, SpecialistTypes eIndex);CivRegisterBefore<CivHooks::CvCity_getSpecialistProductionTimes100>(host, &BeforeCvCity_getSpecialistProductionTimes100);CivRegisterAfter<CivHooks::CvCity_getSpecialistProductionTimes100>(host, &AfterCvCity_getSpecialistProductionTimes100);CivRegisterReplace<CivHooks::CvCity_getSpecialistProductionTimes100>(host, &ReplaceCvCity_getSpecialistProductionTimes100);

Code

11453int CvCity::getSpecialistProductionTimes100(SpecialistTypes eIndex) const11454{11455	VALIDATE_OBJECT11456	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");11457	CvAssertMsg(eIndex < GC.getNumSpecialistInfos(), "eIndex expected to be < GC.getNumSpecialistInfos()");11458	return m_paiSpecialistProduction[eIndex];11459}

Calls

Called by