Bazaar developer reference

CvDllUnitInfo::GetReferenceCount()

Defined in
CvDllUnitInfo.cpp, line 54
Class
CvDllUnitInfo
Hook name
CivHooks::CvDllUnitInfo_GetReferenceCount

Hooks

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

Code

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