Bazaar developer reference

CvDllUnit::CanDoInterfaceMode(InterfaceModeTypes, bool)

Defined in
CvDllUnit.cpp, line 277
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_CanDoInterfaceMode

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

Code

277bool CvDllUnit::CanDoInterfaceMode(InterfaceModeTypes eInterfaceMode, bool bTestVisibility)278{279	return m_pUnit->CanDoInterfaceMode(eInterfaceMode, bTestVisibility);280}

Calls