Bazaar developer reference

CvDllPromotionInfo::GetReferenceCount()

Defined in
CvDllPromotionInfo.cpp, line 56
Class
CvDllPromotionInfo
Hook name
CivHooks::CvDllPromotionInfo_GetReferenceCount

Hooks

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

Code

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