Bazaar developer reference

CvDllDiplomacyAI::GetReferenceCount()

Defined in
CvDllDiplomacyAI.cpp, line 56
Class
CvDllDiplomacyAI
Hook name
CivHooks::CvDllDiplomacyAI_GetReferenceCount

Hooks

static bool BeforeCvDllDiplomacyAI_GetReferenceCount(CvDllDiplomacyAI* self, unsigned int& result);static void AfterCvDllDiplomacyAI_GetReferenceCount(CvDllDiplomacyAI* self, unsigned int& result);static unsigned int ReplaceCvDllDiplomacyAI_GetReferenceCount(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_GetReferenceCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDiplomacyAI_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDiplomacyAI_GetReferenceCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDiplomacyAI_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDiplomacyAI_GetReferenceCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDiplomacyAI_GetReferenceCount);

Code

56unsigned int CvDllDiplomacyAI::GetReferenceCount()57{58	return m_uiRefCount;59}