Bazaar developer reference

CvDllTechInfo::GetReferenceCount()

Defined in
CvDllTechInfo.cpp, line 54
Class
CvDllTechInfo
Hook name
CivHooks::CvDllTechInfo_GetReferenceCount

Hooks

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

Code

54unsigned int CvDllTechInfo::GetReferenceCount()55{56	return m_uiRefCount;57}