Bazaar developer reference

CvDllDealAI::IncrementReference()

Defined in
CvDllDealAI.cpp, line 38
Class
CvDllDealAI
Hook name
CivHooks::CvDllDealAI_IncrementReference

Hooks

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

Code

38unsigned int CvDllDealAI::IncrementReference()39{40	++m_uiRefCount;41	return m_uiRefCount;42}

Called by