Bazaar developer reference

CvGame::setTeamScore(TeamTypes, int)

Defined in
CvGame.cpp, line 7254
Class
CvGame
Hook name
CivHooks::CvGame_setTeamScore

Hooks

static bool BeforeCvGame_setTeamScore(CvGame* self, TeamTypes eTeam, int iScore);static void AfterCvGame_setTeamScore(CvGame* self, TeamTypes eTeam, int iScore);static void ReplaceCvGame_setTeamScore(void (*original)(CvGame*, TeamTypes, int), CvGame* self, TeamTypes eTeam, int iScore);CivRegisterBefore<CivHooks::CvGame_setTeamScore>(host, &BeforeCvGame_setTeamScore);CivRegisterAfter<CivHooks::CvGame_setTeamScore>(host, &AfterCvGame_setTeamScore);CivRegisterReplace<CivHooks::CvGame_setTeamScore>(host, &ReplaceCvGame_setTeamScore);

Code

7254void CvGame::setTeamScore(TeamTypes eTeam, int iScore)7255{7256	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");7257	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");7258	m_aiTeamScore[eTeam] = iScore;7259	CvAssert(getTeamScore(eTeam) >= 0);7260}

Called by