Bazaar developer reference

CvDllGameOptionInfo::GetReferenceCount()

Defined in
CvDllGameOptionInfo.cpp, line 55
Class
CvDllGameOptionInfo
Hook name
CivHooks::CvDllGameOptionInfo_GetReferenceCount

Hooks

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

Code

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