Bazaar developer reference

CvGlobals::GetHexDebugLayerScale(const char *)

Defined in
CvGlobals.cpp, line 4088
Class
CvGlobals
Hook name
CivHooks::CvGlobals_GetHexDebugLayerScale

Hooks

static bool BeforeCvGlobals_GetHexDebugLayerScale(CvGlobals* self, const char* szLayerName, float& result);static void AfterCvGlobals_GetHexDebugLayerScale(CvGlobals* self, const char* szLayerName, float& result);static float ReplaceCvGlobals_GetHexDebugLayerScale(float (*original)(CvGlobals*, const char*), CvGlobals* self, const char* szLayerName);CivRegisterBefore<CivHooks::CvGlobals_GetHexDebugLayerScale>(host, &BeforeCvGlobals_GetHexDebugLayerScale);CivRegisterAfter<CivHooks::CvGlobals_GetHexDebugLayerScale>(host, &AfterCvGlobals_GetHexDebugLayerScale);CivRegisterReplace<CivHooks::CvGlobals_GetHexDebugLayerScale>(host, &ReplaceCvGlobals_GetHexDebugLayerScale);

Code

4088float CvGlobals::GetHexDebugLayerScale(const char* szLayerName)4089{4090	std::string strLayerName = szLayerName;4091	float fScale = 1.0f;40924093	if(strLayerName == "SettlerSiteEvaluationLayer")4094	{4095		fScale = 1.5f;4096	}4097	if(strLayerName == "ArtifactLayer")4098	{4099		fScale = 2.0f;4100	}41014102	return fScale;4103}

Calls

Called by