Bazaar developer reference

CvDllDeal::GetReferenceCount()

Defined in
CvDllDeal.cpp, line 55
Class
CvDllDeal
Hook name
CivHooks::CvDllDeal_GetReferenceCount

Hooks

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

Code

55unsigned int CvDllDeal::GetReferenceCount()56{57	return m_uiRefCount;58}