Bazaar developer reference

CvDllGame::GetReferenceCount()

Defined in
CvDllGame.cpp, line 68
Class
CvDllGame
Hook name
CivHooks::CvDllGame_GetReferenceCount

Hooks

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

Code

68unsigned int CvDllGame::GetReferenceCount()69{70	return m_uiRefCount;71}