Bazaar developer reference

CvDllGameSpeedInfo::GetReferenceCount()

Defined in
CvDllGameSpeedInfo.cpp, line 55
Class
CvDllGameSpeedInfo
Hook name
CivHooks::CvDllGameSpeedInfo_GetReferenceCount

Hooks

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

Code

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