Bazaar developer reference

CvPlot::changeNumResource(int)

Defined in
CvPlot.cpp, line 6500
Class
CvPlot
Hook name
CivHooks::CvPlot_changeNumResource

Hooks

static bool BeforeCvPlot_changeNumResource(CvPlot* self, int iChange);static void AfterCvPlot_changeNumResource(CvPlot* self, int iChange);static void ReplaceCvPlot_changeNumResource(void (*original)(CvPlot*, int), CvPlot* self, int iChange);CivRegisterBefore<CivHooks::CvPlot_changeNumResource>(host, &BeforeCvPlot_changeNumResource);CivRegisterAfter<CivHooks::CvPlot_changeNumResource>(host, &AfterCvPlot_changeNumResource);CivRegisterReplace<CivHooks::CvPlot_changeNumResource>(host, &ReplaceCvPlot_changeNumResource);

Code

6500void CvPlot::changeNumResource(int iChange)6501{6502	setNumResource(getNumResource() + iChange);6503	CvAssert(getNumResource() >= 0);6504}

Calls

Called by