Bazaar developer reference

CvCity::getProcessProductionTimes100(ProcessTypes) const

Defined in
CvCity.cpp, line 11502
Class
CvCity
Hook name
CivHooks::CvCity_getProcessProductionTimes100

Hooks

static bool BeforeCvCity_getProcessProductionTimes100(const CvCity* self, ProcessTypes eIndex, int& result);static void AfterCvCity_getProcessProductionTimes100(const CvCity* self, ProcessTypes eIndex, int& result);static int ReplaceCvCity_getProcessProductionTimes100(int (*original)(const CvCity*, ProcessTypes), const CvCity* self, ProcessTypes eIndex);CivRegisterBefore<CivHooks::CvCity_getProcessProductionTimes100>(host, &BeforeCvCity_getProcessProductionTimes100);CivRegisterAfter<CivHooks::CvCity_getProcessProductionTimes100>(host, &AfterCvCity_getProcessProductionTimes100);CivRegisterReplace<CivHooks::CvCity_getProcessProductionTimes100>(host, &ReplaceCvCity_getProcessProductionTimes100);

Code

11502int CvCity::getProcessProductionTimes100(ProcessTypes eIndex) const11503{11504	VALIDATE_OBJECT11505	CvAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");11506	CvAssertMsg(eIndex < GC.getNumProcessInfos(), "eIndex expected to be < GC.getNumProcessInfos()");11507	11508	if (eIndex == GC.getInfoTypeForString("PROCESS_STOCKPILE")) {11509		return getBasicYieldRateTimes100(YIELD_PRODUCTION, false);11510	}1151111512	return 0;11513}

Calls

Called by