Bazaar developer reference

CvDllWorldInfo::IncrementReference()

Defined in
CvDllWorldInfo.cpp, line 36
Class
CvDllWorldInfo
Hook name
CivHooks::CvDllWorldInfo_IncrementReference

Hooks

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

Code

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

Called by