Bazaar developer reference

CvBuildingEntry::GetSeaPlotYieldChange(int) const

Defined in
CvBuildingClasses.cpp, line 1803
Class
CvBuildingEntry
Hook name
CivHooks::CvBuildingEntry_GetSeaPlotYieldChange

Hooks

static bool BeforeCvBuildingEntry_GetSeaPlotYieldChange(const CvBuildingEntry* self, int i, int& result);static void AfterCvBuildingEntry_GetSeaPlotYieldChange(const CvBuildingEntry* self, int i, int& result);static int ReplaceCvBuildingEntry_GetSeaPlotYieldChange(int (*original)(const CvBuildingEntry*, int), const CvBuildingEntry* self, int i);CivRegisterBefore<CivHooks::CvBuildingEntry_GetSeaPlotYieldChange>(host, &BeforeCvBuildingEntry_GetSeaPlotYieldChange);CivRegisterAfter<CivHooks::CvBuildingEntry_GetSeaPlotYieldChange>(host, &AfterCvBuildingEntry_GetSeaPlotYieldChange);CivRegisterReplace<CivHooks::CvBuildingEntry_GetSeaPlotYieldChange>(host, &ReplaceCvBuildingEntry_GetSeaPlotYieldChange);

Code

1802/// Sea plot yield changes by type1803int CvBuildingEntry::GetSeaPlotYieldChange(int i) const1804{1805	CvAssertMsg(i < NUM_YIELD_TYPES, "Index out of bounds");1806	CvAssertMsg(i > -1, "Index out of bounds");1807	return m_piSeaPlotYieldChange ? m_piSeaPlotYieldChange[i] : -1;1808}

Called by