Hooks
static bool BeforeCvDllUnit_CanDoInterfaceMode(CvDllUnit* self, InterfaceModeTypes eInterfaceMode, bool bTestVisibility, bool& result);static void AfterCvDllUnit_CanDoInterfaceMode(CvDllUnit* self, InterfaceModeTypes eInterfaceMode, bool bTestVisibility, bool& result);static bool ReplaceCvDllUnit_CanDoInterfaceMode(bool (*original)(CvDllUnit*, InterfaceModeTypes, bool), CvDllUnit* self, InterfaceModeTypes eInterfaceMode, bool bTestVisibility);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_CanDoInterfaceMode::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_CanDoInterfaceMode);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_CanDoInterfaceMode::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_CanDoInterfaceMode);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_CanDoInterfaceMode::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_CanDoInterfaceMode);