Bazaar developer reference

CvDllResourceInfo::GetReferenceCount()

Defined in
CvDllResourceInfo.cpp, line 55
Class
CvDllResourceInfo
Hook name
CivHooks::CvDllResourceInfo_GetReferenceCount

Hooks

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

Code

55unsigned int CvDllResourceInfo::GetReferenceCount()56{57	return m_uiRefCount;58}