Bazaar developer reference

CvTeamTechs::GetTechCount(TechTypes) const

Defined in
CvTechClasses.cpp, line 2047
Class
CvTeamTechs
Hook name
CivHooks::CvTeamTechs_GetTechCount

Hooks

static bool BeforeCvTeamTechs_GetTechCount(const CvTeamTechs* self, TechTypes eIndex, int& result);static void AfterCvTeamTechs_GetTechCount(const CvTeamTechs* self, TechTypes eIndex, int& result);static int ReplaceCvTeamTechs_GetTechCount(int (*original)(const CvTeamTechs*, TechTypes), const CvTeamTechs* self, TechTypes eIndex);CivRegisterBefore<CivHooks::CvTeamTechs_GetTechCount>(host, &BeforeCvTeamTechs_GetTechCount);CivRegisterAfter<CivHooks::CvTeamTechs_GetTechCount>(host, &AfterCvTeamTechs_GetTechCount);CivRegisterReplace<CivHooks::CvTeamTechs_GetTechCount>(host, &ReplaceCvTeamTechs_GetTechCount);

Code

2046/// Accessor: get count of times this has been researched2047int CvTeamTechs::GetTechCount(TechTypes eIndex)const2048{2049	return m_paiTechCount[eIndex];2050}

Called by