Bazaar developer reference

CvDllBuildingInfo::GetReferenceCount()

Defined in
CvDllBuildingInfo.cpp, line 54
Class
CvDllBuildingInfo
Hook name
CivHooks::CvDllBuildingInfo_GetReferenceCount

Hooks

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

Code

54unsigned int CvDllBuildingInfo::GetReferenceCount()55{56	return m_uiRefCount;57}