Bazaar developer reference

CvDllTerrainInfo::GetReferenceCount()

Defined in
CvDllTerrainInfo.cpp, line 55
Class
CvDllTerrainInfo
Hook name
CivHooks::CvDllTerrainInfo_GetReferenceCount

Hooks

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

Code

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