Bazaar developer reference

CvDllTechInfo::IncrementReference()

Defined in
CvDllTechInfo.cpp, line 34
Class
CvDllTechInfo
Hook name
CivHooks::CvDllTechInfo_IncrementReference

Hooks

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

Code

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

Called by