Bazaar developer reference

CvDllUnit::GetOwner() const

Defined in
CvDllUnit.cpp, line 89
Class
CvDllUnit
Hook name
CivHooks::CvDllUnit_GetOwner

Hooks

static bool BeforeCvDllUnit_GetOwner(const CvDllUnit* self, PlayerTypes& result);static void AfterCvDllUnit_GetOwner(const CvDllUnit* self, PlayerTypes& result);static PlayerTypes ReplaceCvDllUnit_GetOwner(PlayerTypes (*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_GetOwner::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllUnit_GetOwner);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetOwner::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllUnit_GetOwner);host->RegisterHook(host->pluginIndex, CivHooks::CvDllUnit_GetOwner::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllUnit_GetOwner);

Code

89PlayerTypes CvDllUnit::GetOwner() const90{91	return m_pUnit->getOwner();92}

Calls