Bazaar developer reference

CvDllPlot::RemoveUnit(ICvUnit1 *, bool)

Defined in
CvDllPlot.cpp, line 330
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_RemoveUnit

Hooks

static bool BeforeCvDllPlot_RemoveUnit(CvDllPlot* self, ICvUnit1* pUnit, bool bUpdate);static void AfterCvDllPlot_RemoveUnit(CvDllPlot* self, ICvUnit1* pUnit, bool bUpdate);static void ReplaceCvDllPlot_RemoveUnit(void (*original)(CvDllPlot*, ICvUnit1*, bool), CvDllPlot* self, ICvUnit1* pUnit, bool bUpdate);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_RemoveUnit::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_RemoveUnit);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_RemoveUnit::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_RemoveUnit);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_RemoveUnit::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_RemoveUnit);

Code

330void CvDllPlot::RemoveUnit(ICvUnit1* pUnit, bool bUpdate)331{332	CvUnit* pkUnit = (NULL != pUnit)? static_cast<CvDllUnit*>(pUnit)->GetInstance() : NULL;333	return m_pPlot->removeUnit(pkUnit, bUpdate);334}

Calls