Hooks
static bool BeforeCvDllUnit_DoCommand(CvDllUnit* self, CommandTypes eCommand, int iData1, int iData2);static void AfterCvDllUnit_DoCommand(CvDllUnit* self, CommandTypes eCommand, int iData1, int iData2);static void ReplaceCvDllUnit_DoCommand(void (*original)(CvDllUnit*, CommandTypes, int, int), CvDllUnit* self, CommandTypes eCommand, int iData1, int iData2);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_DoCommand::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_DoCommand);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_DoCommand::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_DoCommand);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_DoCommand::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_DoCommand);