Bazaar developer reference

CvDllRandom::GetReferenceCount()

Defined in
CvDllRandom.cpp, line 58
Class
CvDllRandom
Hook name
CivHooks::CvDllRandom_GetReferenceCount

Hooks

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

Code

58unsigned int CvDllRandom::GetReferenceCount()59{60	return m_uiRefCount;61}