Bazaar developer reference

CvTechEntry::GetPrereqOrTechs(int) const

Defined in
CvTechClasses.cpp, line 554
Class
CvTechEntry
Hook name
CivHooks::CvTechEntry_GetPrereqOrTechs

Hooks

static bool BeforeCvTechEntry_GetPrereqOrTechs(const CvTechEntry* self, int i, int& result);static void AfterCvTechEntry_GetPrereqOrTechs(const CvTechEntry* self, int i, int& result);static int ReplaceCvTechEntry_GetPrereqOrTechs(int (*original)(const CvTechEntry*, int), const CvTechEntry* self, int i);CivRegisterBefore<CivHooks::CvTechEntry_GetPrereqOrTechs>(host, &BeforeCvTechEntry_GetPrereqOrTechs);CivRegisterAfter<CivHooks::CvTechEntry_GetPrereqOrTechs>(host, &AfterCvTechEntry_GetPrereqOrTechs);CivRegisterReplace<CivHooks::CvTechEntry_GetPrereqOrTechs>(host, &ReplaceCvTechEntry_GetPrereqOrTechs);

Code

553/// Prerequisite techs with OR554int CvTechEntry::GetPrereqOrTechs(int i) const555{556	return m_piPrereqOrTechs ? m_piPrereqOrTechs[i] : -1;557}

Called by