Hooks
static bool BeforeCvDllGameContext_GetTerrainInfo(CvDllGameContext* self, TerrainTypes eTerrainNum, ICvTerrainInfo1*& result);static void AfterCvDllGameContext_GetTerrainInfo(CvDllGameContext* self, TerrainTypes eTerrainNum, ICvTerrainInfo1*& result);static ICvTerrainInfo1* ReplaceCvDllGameContext_GetTerrainInfo(ICvTerrainInfo1* (*original)(CvDllGameContext*, TerrainTypes), CvDllGameContext* self, TerrainTypes eTerrainNum);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetTerrainInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetTerrainInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetTerrainInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetTerrainInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetTerrainInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetTerrainInfo);