Bazaar developer reference

CvGlobals::getVictoryInfo(VictoryTypes)

Defined in
CvGlobals.cpp, line 3974
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getVictoryInfo_with_VictoryTypes

Hooks

static bool BeforeCvGlobals_getVictoryInfo_with_VictoryTypes(CvGlobals* self, VictoryTypes eVictoryNum, CvVictoryInfo*& result);static void AfterCvGlobals_getVictoryInfo_with_VictoryTypes(CvGlobals* self, VictoryTypes eVictoryNum, CvVictoryInfo*& result);static CvVictoryInfo* ReplaceCvGlobals_getVictoryInfo_with_VictoryTypes(CvVictoryInfo* (*original)(CvGlobals*, VictoryTypes), CvGlobals* self, VictoryTypes eVictoryNum);CivRegisterBefore<CivHooks::CvGlobals_getVictoryInfo_with_VictoryTypes>(host, &BeforeCvGlobals_getVictoryInfo_with_VictoryTypes);CivRegisterAfter<CivHooks::CvGlobals_getVictoryInfo_with_VictoryTypes>(host, &AfterCvGlobals_getVictoryInfo_with_VictoryTypes);CivRegisterReplace<CivHooks::CvGlobals_getVictoryInfo_with_VictoryTypes>(host, &ReplaceCvGlobals_getVictoryInfo_with_VictoryTypes);

Code

3974CvVictoryInfo* CvGlobals::getVictoryInfo(VictoryTypes eVictoryNum)3975{3976	CvAssert(eVictoryNum > -1);3977	CvAssert(eVictoryNum < GC.getNumVictoryInfos());3978	return m_paVictoryInfo[eVictoryNum];3979}

Calls

Called by