Bazaar developer reference

CvDllGameContext::GetHexDebugLayerScale(const char *)

Defined in
CvDllContext.cpp, line 694
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetHexDebugLayerScale

Hooks

static bool BeforeCvDllGameContext_GetHexDebugLayerScale(CvDllGameContext* self, const char* szLayerName, float& result);static void AfterCvDllGameContext_GetHexDebugLayerScale(CvDllGameContext* self, const char* szLayerName, float& result);static float ReplaceCvDllGameContext_GetHexDebugLayerScale(float (*original)(CvDllGameContext*, const char*), CvDllGameContext* self, const char* szLayerName);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetHexDebugLayerScale::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetHexDebugLayerScale);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetHexDebugLayerScale::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetHexDebugLayerScale);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetHexDebugLayerScale::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetHexDebugLayerScale);

Code

694float CvDllGameContext::GetHexDebugLayerScale(const char* szLayerName)695{696	return GC.GetHexDebugLayerScale(szLayerName);697}

Calls