Bazaar developer reference

CvPreGame::setTeamType(PlayerTypes, TeamTypes)

Defined in
CvPreGame.cpp, line 2970
Hook name
CivHooks::CvPreGame_setTeamType

Hooks

static bool BeforeCvPreGame_setTeamType(PlayerTypes p, TeamTypes t);static void AfterCvPreGame_setTeamType(PlayerTypes p, TeamTypes t);static void ReplaceCvPreGame_setTeamType(void (*original)(PlayerTypes, TeamTypes), PlayerTypes p, TeamTypes t);CivRegisterBefore<CivHooks::CvPreGame_setTeamType>(host, &BeforeCvPreGame_setTeamType);CivRegisterAfter<CivHooks::CvPreGame_setTeamType>(host, &AfterCvPreGame_setTeamType);CivRegisterReplace<CivHooks::CvPreGame_setTeamType>(host, &ReplaceCvPreGame_setTeamType);

Code

2970void setTeamType(PlayerTypes p, TeamTypes t)2971{2972	if(p >= 0 && p < MAX_PLAYERS)2973		s_teamTypes.setAt(p, t);2974}

Calls

Called by