Bazaar developer reference

CvGlobals::getPlotInfo(PlotTypes)

Defined in
CvGlobals.cpp, line 2724
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getPlotInfo_with_PlotTypes

Hooks

static bool BeforeCvGlobals_getPlotInfo_with_PlotTypes(CvGlobals* self, PlotTypes ePlotNum, CvPlotInfo*& result);static void AfterCvGlobals_getPlotInfo_with_PlotTypes(CvGlobals* self, PlotTypes ePlotNum, CvPlotInfo*& result);static CvPlotInfo* ReplaceCvGlobals_getPlotInfo_with_PlotTypes(CvPlotInfo* (*original)(CvGlobals*, PlotTypes), CvGlobals* self, PlotTypes ePlotNum);CivRegisterBefore<CivHooks::CvGlobals_getPlotInfo_with_PlotTypes>(host, &BeforeCvGlobals_getPlotInfo_with_PlotTypes);CivRegisterAfter<CivHooks::CvGlobals_getPlotInfo_with_PlotTypes>(host, &AfterCvGlobals_getPlotInfo_with_PlotTypes);CivRegisterReplace<CivHooks::CvGlobals_getPlotInfo_with_PlotTypes>(host, &ReplaceCvGlobals_getPlotInfo_with_PlotTypes);

Code

2724CvPlotInfo* CvGlobals::getPlotInfo(PlotTypes ePlotNum)2725{2726	if (MOD_API_PLOT_YIELDS) {2727		CvAssert(ePlotNum > -1);2728		CvAssert(ePlotNum < GC.getNumPlotInfos());2729		if(ePlotNum > -1 && ePlotNum < (int)m_paPlotInfo.size())2730			return m_paPlotInfo[ePlotNum];2731		else2732			return NULL;2733	} else {2734		return NULL;2735	}2736}

Calls

Called by