Hooks
static bool BeforeCvDllPlot_GetUnitByIndex(const CvDllPlot* self, int iIndex, ICvUnit1*& result);static void AfterCvDllPlot_GetUnitByIndex(const CvDllPlot* self, int iIndex, ICvUnit1*& result);static ICvUnit1* ReplaceCvDllPlot_GetUnitByIndex(ICvUnit1* (*original)(const CvDllPlot*, int), const CvDllPlot* self, int iIndex);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetUnitByIndex::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_GetUnitByIndex);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetUnitByIndex::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_GetUnitByIndex);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetUnitByIndex::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_GetUnitByIndex);