Bazaar developer reference

CvDllGame::SelectUnit(ICvUnit1 *, bool, bool, bool)

Defined in
CvDllGame.cpp, line 417
Class
CvDllGame
Hook name
CivHooks::CvDllGame_SelectUnit

Hooks

static bool BeforeCvDllGame_SelectUnit(CvDllGame* self, ICvUnit1* pUnit, bool bClear, bool bToggle, bool bSound);static void AfterCvDllGame_SelectUnit(CvDllGame* self, ICvUnit1* pUnit, bool bClear, bool bToggle, bool bSound);static void ReplaceCvDllGame_SelectUnit(void (*original)(CvDllGame*, ICvUnit1*, bool, bool, bool), CvDllGame* self, ICvUnit1* pUnit, bool bClear, bool bToggle, bool bSound);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_SelectUnit::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_SelectUnit);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_SelectUnit::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_SelectUnit);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_SelectUnit::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_SelectUnit);

Code

417void CvDllGame::SelectUnit(ICvUnit1* pUnit, bool bClear, bool bToggle, bool bSound)418{419	CvUnit* pkUnit = (NULL != pUnit)? static_cast<CvDllUnit*>(pUnit)->GetInstance() : NULL;420	m_pGame->selectUnit(pkUnit, bClear, bToggle, bSound);421}

Calls