Bazaar developer reference

CvDllTeam::GetReferenceCount()

Defined in
CvDllTeam.cpp, line 54
Class
CvDllTeam
Hook name
CivHooks::CvDllTeam_GetReferenceCount

Hooks

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

Code

54unsigned int CvDllTeam::GetReferenceCount()55{56	return m_uiRefCount;57}