Bazaar developer reference

CvDllUnit::GetPlot() const

Defined in
CvDllUnit.cpp, line 159
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetPlot

Hooks

static bool BeforeCvDllUnit_GetPlot(const CvDllUnit* self, ICvPlot1*& result);static void AfterCvDllUnit_GetPlot(const CvDllUnit* self, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllUnit_GetPlot(ICvPlot1* (*original)(const CvDllUnit*), const CvDllUnit* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetPlot::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetPlot::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetPlot);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetPlot::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetPlot);

Code

159ICvPlot1* CvDllUnit::GetPlot() const160{161	CvPlot* pkPlot = m_pUnit->plot();162	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;163}

Calls