Bazaar developer reference

CvDllHandicapInfo::IncrementReference()

Defined in
CvDllHandicapInfo.cpp, line 35
Class
CvDllHandicapInfo
Hook name
CivHooks::CvDllHandicapInfo_IncrementReference

Hooks

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

Code

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

Called by