Bazaar developer reference

CvPlayerTechs::GetCivTechUniqueBuilding(TechTypes) const

Defined in
CvTechClasses.cpp, line 971
Class
CvPlayerTechs
Hook name
CivHooks::CvPlayerTechs_GetCivTechUniqueBuilding

Hooks

static bool BeforeCvPlayerTechs_GetCivTechUniqueBuilding(const CvPlayerTechs* self, TechTypes eIndex, BuildingTypes& result);static void AfterCvPlayerTechs_GetCivTechUniqueBuilding(const CvPlayerTechs* self, TechTypes eIndex, BuildingTypes& result);static BuildingTypes ReplaceCvPlayerTechs_GetCivTechUniqueBuilding(BuildingTypes (*original)(const CvPlayerTechs*, TechTypes), const CvPlayerTechs* self, TechTypes eIndex);CivRegisterBefore<CivHooks::CvPlayerTechs_GetCivTechUniqueBuilding>(host, &BeforeCvPlayerTechs_GetCivTechUniqueBuilding);CivRegisterAfter<CivHooks::CvPlayerTechs_GetCivTechUniqueBuilding>(host, &AfterCvPlayerTechs_GetCivTechUniqueBuilding);CivRegisterReplace<CivHooks::CvPlayerTechs_GetCivTechUniqueBuilding>(host, &ReplaceCvPlayerTechs_GetCivTechUniqueBuilding);

Code

971BuildingTypes CvPlayerTechs::GetCivTechUniqueBuilding(TechTypes eIndex) const972{973	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");974	CvAssertMsg(eIndex < GC.getNumTechInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");975976	return m_peCivTechUniqueBuildings[eIndex];977}

Called by