Bazaar developer reference

CvDllEraInfo::GetReferenceCount()

Defined in
CvDllEraInfo.cpp, line 55
Class
CvDllEraInfo
Hook name
CivHooks::CvDllEraInfo_GetReferenceCount

Hooks

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

Code

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