Bazaar developer reference

CvDllPlayer::GetTeam() const

Defined in
CvDllPlayer.cpp, line 243
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetTeam

Hooks

static bool BeforeCvDllPlayer_GetTeam(const CvDllPlayer* self, TeamTypes& result);static void AfterCvDllPlayer_GetTeam(const CvDllPlayer* self, TeamTypes& result);static TeamTypes ReplaceCvDllPlayer_GetTeam(TeamTypes (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetTeam::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetTeam);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetTeam::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetTeam);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetTeam::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetTeam);

Code

243TeamTypes CvDllPlayer::GetTeam() const244{245	return m_pPlayer->getTeam();246}

Calls