Bazaar developer reference

CvDllGame::IncrementReference()

Defined in
CvDllGame.cpp, line 48
Class
CvDllGame
Hook name
CivHooks::CvDllGame_IncrementReference

Hooks

static bool BeforeCvDllGame_IncrementReference(CvDllGame* self, unsigned int& result);static void AfterCvDllGame_IncrementReference(CvDllGame* self, unsigned int& result);static unsigned int ReplaceCvDllGame_IncrementReference(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_IncrementReference::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_IncrementReference::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_IncrementReference);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_IncrementReference::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_IncrementReference);

Code

48unsigned int CvDllGame::IncrementReference()49{50	++m_uiRefCount;51	return m_uiRefCount;52}

Called by