Bazaar developer reference

CvDllPlayerColorInfo::GetReferenceCount()

Defined in
CvDllPlayerColorInfo.cpp, line 55
Class
CvDllPlayerColorInfo
Hook name
CivHooks::CvDllPlayerColorInfo_GetReferenceCount

Hooks

static bool BeforeCvDllPlayerColorInfo_GetReferenceCount(CvDllPlayerColorInfo* self, unsigned int& result);static void AfterCvDllPlayerColorInfo_GetReferenceCount(CvDllPlayerColorInfo* self, unsigned int& result);static unsigned int ReplaceCvDllPlayerColorInfo_GetReferenceCount(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_GetReferenceCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayerColorInfo_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayerColorInfo_GetReferenceCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayerColorInfo_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayerColorInfo_GetReferenceCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayerColorInfo_GetReferenceCount);

Code

55unsigned int CvDllPlayerColorInfo::GetReferenceCount()56{57	return m_uiRefCount;58}