Bazaar developer reference

CvDllUnit::GetTeam() const

Defined in
CvDllUnit.cpp, line 119
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetTeam

Hooks

static bool BeforeCvDllUnit_GetTeam(const CvDllUnit* self, TeamTypes& result);static void AfterCvDllUnit_GetTeam(const CvDllUnit* self, TeamTypes& result);static TeamTypes ReplaceCvDllUnit_GetTeam(TeamTypes (*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_GetTeam::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetTeam);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetTeam::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetTeam);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetTeam::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetTeam);

Code

119TeamTypes CvDllUnit::GetTeam() const120{121	return m_pUnit->getTeam();122}

Calls