Bazaar developer reference

CvDllPromotionInfo::IncrementReference()

Defined in
CvDllPromotionInfo.cpp, line 36
Class
CvDllPromotionInfo
Hook name
CivHooks::CvDllPromotionInfo_IncrementReference

Hooks

static bool BeforeCvDllPromotionInfo_IncrementReference(CvDllPromotionInfo* self, unsigned int& result);static void AfterCvDllPromotionInfo_IncrementReference(CvDllPromotionInfo* self, unsigned int& result);static unsigned int ReplaceCvDllPromotionInfo_IncrementReference(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_IncrementReference::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPromotionInfo_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPromotionInfo_IncrementReference::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPromotionInfo_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPromotionInfo_IncrementReference::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPromotionInfo_IncrementReference);

Code

36unsigned int CvDllPromotionInfo::IncrementReference()37{38	++m_uiRefCount;39	return m_uiRefCount;40}

Called by