Bazaar developer reference

CvDllUnit::GetReferenceCount()

Defined in
CvDllUnit.cpp, line 59
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetReferenceCount

Hooks

static bool BeforeCvDllUnit_GetReferenceCount(CvDllUnit* self, unsigned int& result);static void AfterCvDllUnit_GetReferenceCount(CvDllUnit* self, unsigned int& result);static unsigned int ReplaceCvDllUnit_GetReferenceCount(unsigned int (*original)(CvDllUnit*), CvDllUnit* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetReferenceCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetReferenceCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetReferenceCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetReferenceCount);

Code

59unsigned int CvDllUnit::GetReferenceCount()60{61	return m_uiRefCount;62}