Bazaar developer reference

CvDllInterfaceModeInfo::GetReferenceCount()

Defined in
CvDllInterfaceModeInfo.cpp, line 55
Class
CvDllInterfaceModeInfo
Hook name
CivHooks::CvDllInterfaceModeInfo_GetReferenceCount

Hooks

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

Code

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