Bazaar developer reference

CvDllPolicyInfo::GetReferenceCount()

Defined in
CvDllPolicyInfo.cpp, line 55
Class
CvDllPolicyInfo
Hook name
CivHooks::CvDllPolicyInfo_GetReferenceCount

Hooks

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

Code

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