Bazaar developer reference

CvDllGameAsynch::IncrementReference()

Defined in
CvDllGameAsynch.cpp, line 36
Class
CvDllGameAsynch
Hook name
CivHooks::CvDllGameAsynch_IncrementReference

Hooks

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

Code

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

Called by