Bazaar developer reference

CvDllUnit::GetX() const

Defined in
CvDllUnit.cpp, line 191
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetX

Hooks

static bool BeforeCvDllUnit_GetX(const CvDllUnit* self, int& result);static void AfterCvDllUnit_GetX(const CvDllUnit* self, int& result);static int ReplaceCvDllUnit_GetX(int (*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_GetX::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetX);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetX::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetX);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetX::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetX);

Code

191int CvDllUnit::GetX() const192{193	return m_pUnit->getX();194}

Calls