Bazaar developer reference

CvDllDiplomacyAI::IncrementReference()

Defined in
CvDllDiplomacyAI.cpp, line 36
Class
CvDllDiplomacyAI
Hook name
CivHooks::CvDllDiplomacyAI_IncrementReference

Hooks

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

Code

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

Called by