Bazaar developer reference

CvDllCity::GetReferenceCount()

Defined in
CvDllCity.cpp, line 56
Class
CvDllCity
Hook name
CivHooks::CvDllCity_GetReferenceCount

Hooks

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

Code

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