Bazaar developer reference

CvDllPlayerOptionInfo::IncrementReference()

Defined in
CvDllPlayerOptionInfo.cpp, line 35
Class
CvDllPlayerOptionInfo
Hook name
CivHooks::CvDllPlayerOptionInfo_IncrementReference

Hooks

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

Code

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

Called by