Bazaar developer reference

CvGlobals::getAutomateInfo(int)

Defined in
CvGlobals.cpp, line 3476
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getAutomateInfo_with_int

Hooks

static bool BeforeCvGlobals_getAutomateInfo_with_int(CvGlobals* self, int iAutomateNum, CvAutomateInfo*& result);static void AfterCvGlobals_getAutomateInfo_with_int(CvGlobals* self, int iAutomateNum, CvAutomateInfo*& result);static CvAutomateInfo* ReplaceCvGlobals_getAutomateInfo_with_int(CvAutomateInfo* (*original)(CvGlobals*, int), CvGlobals* self, int iAutomateNum);CivRegisterBefore<CivHooks::CvGlobals_getAutomateInfo_with_int>(host, &BeforeCvGlobals_getAutomateInfo_with_int);CivRegisterAfter<CivHooks::CvGlobals_getAutomateInfo_with_int>(host, &AfterCvGlobals_getAutomateInfo_with_int);CivRegisterReplace<CivHooks::CvGlobals_getAutomateInfo_with_int>(host, &ReplaceCvGlobals_getAutomateInfo_with_int);

Code

3476CvAutomateInfo* CvGlobals::getAutomateInfo(int iAutomateNum)3477{3478	CvAssertMsg(iAutomateNum < getNumAutomateInfos(), "Index out of bounds");3479	CvAssertMsg(iAutomateNum > -1, "Index out of bounds");3480	if(iAutomateNum > -1 && iAutomateNum < (int)m_paAutomateInfo.size())3481		return m_paAutomateInfo[iAutomateNum];3482	else3483		return NULL;3484}

Calls

Called by