Hooks
static bool BeforeCvDllUnit_GetDomainType(const CvDllUnit* self, DomainTypes& result);static void AfterCvDllUnit_GetDomainType(const CvDllUnit* self, DomainTypes& result);static DomainTypes ReplaceCvDllUnit_GetDomainType(DomainTypes (*original)(const CvDllUnit*), const CvDllUnit* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDomainType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetDomainType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDomainType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetDomainType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetDomainType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetDomainType);