Bazaar developer reference

CvGlobals::getPlayerOptionInfo(PlayerOptionTypes)

Defined in
CvGlobals.cpp, line 3119
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes

Hooks

static bool BeforeCvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes(CvGlobals* self, PlayerOptionTypes ePlayerOptionNum, CvPlayerOptionInfo*& result);static void AfterCvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes(CvGlobals* self, PlayerOptionTypes ePlayerOptionNum, CvPlayerOptionInfo*& result);static CvPlayerOptionInfo* ReplaceCvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes(CvPlayerOptionInfo* (*original)(CvGlobals*, PlayerOptionTypes), CvGlobals* self, PlayerOptionTypes ePlayerOptionNum);CivRegisterBefore<CivHooks::CvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes>(host, &BeforeCvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes);CivRegisterAfter<CivHooks::CvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes>(host, &AfterCvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes);CivRegisterReplace<CivHooks::CvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes>(host, &ReplaceCvGlobals_getPlayerOptionInfo_with_PlayerOptionTypes);

Code

3119CvPlayerOptionInfo* CvGlobals::getPlayerOptionInfo(PlayerOptionTypes ePlayerOptionNum)3120{3121	CvAssert(ePlayerOptionNum >= 0);3122	if(ePlayerOptionNum > -1 && ePlayerOptionNum < (int)m_paPlayerOptionInfos.size())3123		return m_paPlayerOptionInfos[ePlayerOptionNum];3124	else3125		return NULL;3126}

Calls

Called by