Bazaar developer reference

CvGame::setTeamVictoryRank(VictoryTypes, int, TeamTypes)

Defined in
CvGame.cpp, line 6789
Class
CvGame
Hook name
CivHooks::CvGame_setTeamVictoryRank

Hooks

static bool BeforeCvGame_setTeamVictoryRank(CvGame* self, VictoryTypes eNewVictory, int iRank, TeamTypes eTeam);static void AfterCvGame_setTeamVictoryRank(CvGame* self, VictoryTypes eNewVictory, int iRank, TeamTypes eTeam);static void ReplaceCvGame_setTeamVictoryRank(void (*original)(CvGame*, VictoryTypes, int, TeamTypes), CvGame* self, VictoryTypes eNewVictory, int iRank, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvGame_setTeamVictoryRank>(host, &BeforeCvGame_setTeamVictoryRank);CivRegisterAfter<CivHooks::CvGame_setTeamVictoryRank>(host, &AfterCvGame_setTeamVictoryRank);CivRegisterReplace<CivHooks::CvGame_setTeamVictoryRank>(host, &ReplaceCvGame_setTeamVictoryRank);

Code

6789void CvGame::setTeamVictoryRank(VictoryTypes eNewVictory, int iRank, TeamTypes eTeam)6790{6791	CvAssert(iRank >= 0);6792	CvAssert(iRank < GC.getNUM_VICTORY_POINT_AWARDS());67936794	m_ppaaiTeamVictoryRank[eNewVictory][iRank] = eTeam;6795}

Called by