Bazaar developer reference

CvPlot::getUnits(IDInfoVector *) const

Defined in
CvPlot.cpp, line 10403
Class
CvPlot
Hook name
CivHooks::CvPlot_getUnits

Hooks

static bool BeforeCvPlot_getUnits(const CvPlot* self, IDInfoVector* pkInfoVector, uint& result);static void AfterCvPlot_getUnits(const CvPlot* self, IDInfoVector* pkInfoVector, uint& result);static uint ReplaceCvPlot_getUnits(uint (*original)(const CvPlot*, IDInfoVector*), const CvPlot* self, IDInfoVector* pkInfoVector);CivRegisterBefore<CivHooks::CvPlot_getUnits>(host, &BeforeCvPlot_getUnits);CivRegisterAfter<CivHooks::CvPlot_getUnits>(host, &AfterCvPlot_getUnits);CivRegisterReplace<CivHooks::CvPlot_getUnits>(host, &ReplaceCvPlot_getUnits);

Code

10403uint CvPlot::getUnits(IDInfoVector* pkInfoVector) const10404{10405	uint uiCount = 0;10406	if (pkInfoVector)10407	{10408		pkInfoVector->clear();10409	10410		const IDInfo* pUnitNode = headUnitNode();1041110412		while (pUnitNode != NULL)10413		{10414			pkInfoVector->push_back(*pUnitNode);10415			pUnitNode = nextUnitNode(pUnitNode);10416			++uiCount;10417		}10418	}10419	return uiCount;10420}

Calls

Called by