Bazaar developer reference

CvDllWorldInfo::GetReferenceCount()

Defined in
CvDllWorldInfo.cpp, line 56
Class
CvDllWorldInfo
Hook name
CivHooks::CvDllWorldInfo_GetReferenceCount

Hooks

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

Code

56unsigned int CvDllWorldInfo::GetReferenceCount()57{58	return m_uiRefCount;59}