Bazaar developer reference

CvBuildingEntry::GetLakePlotYieldChange(int) const

Defined in
CvBuildingClasses.cpp, line 1831
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetLakePlotYieldChange

Hooks

static bool BeforeCvBuildingEntry_GetLakePlotYieldChange(const CvBuildingEntry* self, int i, int& result);static void AfterCvBuildingEntry_GetLakePlotYieldChange(const CvBuildingEntry* self, int i, int& result);static int ReplaceCvBuildingEntry_GetLakePlotYieldChange(int (*original)(const CvBuildingEntry*, int), const CvBuildingEntry* self, int i);CivRegisterBefore<CivHooks::CvBuildingEntry_GetLakePlotYieldChange>(host, &BeforeCvBuildingEntry_GetLakePlotYieldChange);CivRegisterAfter<CivHooks::CvBuildingEntry_GetLakePlotYieldChange>(host, &AfterCvBuildingEntry_GetLakePlotYieldChange);CivRegisterReplace<CivHooks::CvBuildingEntry_GetLakePlotYieldChange>(host, &ReplaceCvBuildingEntry_GetLakePlotYieldChange);

Code

1830/// Lake plot yield changes by type1831int CvBuildingEntry::GetLakePlotYieldChange(int i) const1832{1833	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");1834	CvAssertMsg(i > -1, "Index out of bounds");1835	return m_piLakePlotYieldChange ? m_piLakePlotYieldChange[i] : -1;1836}

Called by