Bazaar developer reference

CvDllPlayerColorInfo::IncrementReference()

Defined in
CvDllPlayerColorInfo.cpp, line 35
Class
CvDllPlayerColorInfo
Hook name
CivHooks::CvDllPlayerColorInfo_IncrementReference

Hooks

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

Code

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

Called by