Bazaar developer reference

CvDllUnit::DoCommand(CommandTypes, int, int)

Defined in
CvDllUnit.cpp, line 272
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_DoCommand

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);

Code

272void CvDllUnit::DoCommand(CommandTypes eCommand, int iData1, int iData2)273{274	m_pUnit->doCommand(eCommand, iData1, iData2);275}

Calls