Bazaar developer reference

CvDllUnit::GetID() const

Defined in
CvDllUnit.cpp, line 84
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetID

Hooks

static bool BeforeCvDllUnit_GetID(const CvDllUnit* self, int& result);static void AfterCvDllUnit_GetID(const CvDllUnit* self, int& result);static int ReplaceCvDllUnit_GetID(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_GetID::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetID);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetID::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetID);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetID::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetID);

Code

84int CvDllUnit::GetID() const85{86	return m_pUnit->GetID();87}

Calls