Bazaar developer reference

CvGame::setVictoryValid(VictoryTypes, bool)

Defined in
CvGame.cpp, line 7452
Class
CvGame
Hook name
CivHooks::CvGame_setVictoryValid

Hooks

static bool BeforeCvGame_setVictoryValid(CvGame* self, VictoryTypes eIndex, bool bValid);static void AfterCvGame_setVictoryValid(CvGame* self, VictoryTypes eIndex, bool bValid);static void ReplaceCvGame_setVictoryValid(void (*original)(CvGame*, VictoryTypes, bool), CvGame* self, VictoryTypes eIndex, bool bValid);CivRegisterBefore<CivHooks::CvGame_setVictoryValid>(host, &BeforeCvGame_setVictoryValid);CivRegisterAfter<CivHooks::CvGame_setVictoryValid>(host, &AfterCvGame_setVictoryValid);CivRegisterReplace<CivHooks::CvGame_setVictoryValid>(host, &ReplaceCvGame_setVictoryValid);

Code

7452void CvGame::setVictoryValid(VictoryTypes eIndex, bool bValid)7453{7454	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7455	CvAssertMsg(eIndex < GC.getNumVictoryInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");7456	CvPreGame::setVictory(eIndex, bValid);7457}

Calls

Called by