Bazaar developer reference

CvDllCombatInfo::IncrementReference()

Defined in
CvDllCombatInfo.cpp, line 37
Class
CvDllCombatInfo
Hook name
CivHooks::CvDllCombatInfo_IncrementReference

Hooks

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

Code

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

Called by