Bazaar developer reference

CvGlobals::getTechInfo(TechTypes)

Defined in
CvGlobals.cpp, line 3918
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getTechInfo_with_TechTypes

Hooks

static bool BeforeCvGlobals_getTechInfo_with_TechTypes(CvGlobals* self, TechTypes eTechNum, CvTechEntry*& result);static void AfterCvGlobals_getTechInfo_with_TechTypes(CvGlobals* self, TechTypes eTechNum, CvTechEntry*& result);static CvTechEntry* ReplaceCvGlobals_getTechInfo_with_TechTypes(CvTechEntry* (*original)(CvGlobals*, TechTypes), CvGlobals* self, TechTypes eTechNum);CivRegisterBefore<CivHooks::CvGlobals_getTechInfo_with_TechTypes>(host, &BeforeCvGlobals_getTechInfo_with_TechTypes);CivRegisterAfter<CivHooks::CvGlobals_getTechInfo_with_TechTypes>(host, &AfterCvGlobals_getTechInfo_with_TechTypes);CivRegisterReplace<CivHooks::CvGlobals_getTechInfo_with_TechTypes>(host, &ReplaceCvGlobals_getTechInfo_with_TechTypes);

Code

3918CvTechEntry* CvGlobals::getTechInfo(TechTypes eTechNum)3919{3920	CvAssert(eTechNum > -1);3921	CvAssert(eTechNum < GC.getNumTechInfos());3922	return m_pTechs->GetTechEntries()[eTechNum];3923}

Calls

Called by

41 functions in 16 files