Bazaar developer reference

CvDllDeal::IncrementReference()

Defined in
CvDllDeal.cpp, line 35
Class
CvDllDeal
Hook name
CivHooks::CvDllDeal_IncrementReference

Hooks

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

Code

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

Called by