Bazaar developer reference

CvDllUnitInfo::IncrementReference()

Defined in
CvDllUnitInfo.cpp, line 34
Class
CvDllUnitInfo
Hook name
CivHooks::CvDllUnitInfo_IncrementReference

Hooks

static bool BeforeCvDllUnitInfo_IncrementReference(CvDllUnitInfo* self, unsigned int& result);static void AfterCvDllUnitInfo_IncrementReference(CvDllUnitInfo* self, unsigned int& result);static unsigned int ReplaceCvDllUnitInfo_IncrementReference(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_IncrementReference::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnitInfo_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnitInfo_IncrementReference::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnitInfo_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnitInfo_IncrementReference::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnitInfo_IncrementReference);

Code

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

Called by