Bazaar developer reference

CvDllGameSpeedInfo::IncrementReference()

Defined in
CvDllGameSpeedInfo.cpp, line 35
Class
CvDllGameSpeedInfo
Hook name
CivHooks::CvDllGameSpeedInfo_IncrementReference

Hooks

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

Code

35unsigned int CvDllGameSpeedInfo::IncrementReference()36{37	++m_uiRefCount;38	return m_uiRefCount;39}

Called by