Bazaar developer reference

CvPlayerTechs::GetCivTechUniqueImprovement(TechTypes) const

Defined in
CvTechClasses.cpp, line 979
Class
CvPlayerTechs
Hook name
CivHooks::CvPlayerTechs_GetCivTechUniqueImprovement

Hooks

static bool BeforeCvPlayerTechs_GetCivTechUniqueImprovement(const CvPlayerTechs* self, TechTypes eIndex, ImprovementTypes& result);static void AfterCvPlayerTechs_GetCivTechUniqueImprovement(const CvPlayerTechs* self, TechTypes eIndex, ImprovementTypes& result);static ImprovementTypes ReplaceCvPlayerTechs_GetCivTechUniqueImprovement(ImprovementTypes (*original)(const CvPlayerTechs*, TechTypes), const CvPlayerTechs* self, TechTypes eIndex);CivRegisterBefore<CivHooks::CvPlayerTechs_GetCivTechUniqueImprovement>(host, &BeforeCvPlayerTechs_GetCivTechUniqueImprovement);CivRegisterAfter<CivHooks::CvPlayerTechs_GetCivTechUniqueImprovement>(host, &AfterCvPlayerTechs_GetCivTechUniqueImprovement);CivRegisterReplace<CivHooks::CvPlayerTechs_GetCivTechUniqueImprovement>(host, &ReplaceCvPlayerTechs_GetCivTechUniqueImprovement);

Code

979ImprovementTypes CvPlayerTechs::GetCivTechUniqueImprovement(TechTypes eIndex) const980{981	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");982	CvAssertMsg(eIndex < GC.getNumTechInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");983984	return m_peCivTechUniqueImprovements[eIndex];985}

Called by