Bazaar developer reference

CvDllCombatInfo::GetReferenceCount()

Defined in
CvDllCombatInfo.cpp, line 57
Class
CvDllCombatInfo
Hook name
CivHooks::CvDllCombatInfo_GetReferenceCount

Hooks

static bool BeforeCvDllCombatInfo_GetReferenceCount(CvDllCombatInfo* self, unsigned int& result);static void AfterCvDllCombatInfo_GetReferenceCount(CvDllCombatInfo* self, unsigned int& result);static unsigned int ReplaceCvDllCombatInfo_GetReferenceCount(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_GetReferenceCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllCombatInfo_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetReferenceCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllCombatInfo_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetReferenceCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllCombatInfo_GetReferenceCount);

Code

57unsigned int CvDllCombatInfo::GetReferenceCount()58{59	return m_uiRefCount;60}