Bazaar developer reference

CvPlayerTechs::GetLocaleTechResource(TechTypes) const

Defined in
CvTechClasses.cpp, line 955
Class
CvPlayerTechs
Hook name
CivHooks::CvPlayerTechs_GetLocaleTechResource

Hooks

static bool BeforeCvPlayerTechs_GetLocaleTechResource(const CvPlayerTechs* self, TechTypes eIndex, ResourceTypes& result);static void AfterCvPlayerTechs_GetLocaleTechResource(const CvPlayerTechs* self, TechTypes eIndex, ResourceTypes& result);static ResourceTypes ReplaceCvPlayerTechs_GetLocaleTechResource(ResourceTypes (*original)(const CvPlayerTechs*, TechTypes), const CvPlayerTechs* self, TechTypes eIndex);CivRegisterBefore<CivHooks::CvPlayerTechs_GetLocaleTechResource>(host, &BeforeCvPlayerTechs_GetLocaleTechResource);CivRegisterAfter<CivHooks::CvPlayerTechs_GetLocaleTechResource>(host, &AfterCvPlayerTechs_GetLocaleTechResource);CivRegisterReplace<CivHooks::CvPlayerTechs_GetLocaleTechResource>(host, &ReplaceCvPlayerTechs_GetLocaleTechResource);

Code

955ResourceTypes CvPlayerTechs::GetLocaleTechResource(TechTypes eIndex) const956{957	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");958	CvAssertMsg(eIndex < GC.getNumTechInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");959960	return m_peLocaleTechResources[eIndex];961}

Called by