Bazaar developer reference

CvDllHandicapInfo::GetReferenceCount()

Defined in
CvDllHandicapInfo.cpp, line 55
Class
CvDllHandicapInfo
Hook name
CivHooks::CvDllHandicapInfo_GetReferenceCount

Hooks

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

Code

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