Bazaar developer reference

CvDllDealAI::GetReferenceCount()

Defined in
CvDllDealAI.cpp, line 58
Class
CvDllDealAI
Hook name
CivHooks::CvDllDealAI_GetReferenceCount

Hooks

static bool BeforeCvDllDealAI_GetReferenceCount(CvDllDealAI* self, unsigned int& result);static void AfterCvDllDealAI_GetReferenceCount(CvDllDealAI* self, unsigned int& result);static unsigned int ReplaceCvDllDealAI_GetReferenceCount(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_GetReferenceCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDealAI_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_GetReferenceCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDealAI_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_GetReferenceCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDealAI_GetReferenceCount);

Code

58unsigned int CvDllDealAI::GetReferenceCount()59{60	return m_uiRefCount;61}