Bazaar developer reference

CvTechEntry::GetAIWeight() const

Defined in
CvTechClasses.cpp, line 220
Class
CvTechEntry
Hook name
CivHooks::CvTechEntry_GetAIWeight

Hooks

static bool BeforeCvTechEntry_GetAIWeight(const CvTechEntry* self, int& result);static void AfterCvTechEntry_GetAIWeight(const CvTechEntry* self, int& result);static int ReplaceCvTechEntry_GetAIWeight(int (*original)(const CvTechEntry*), const CvTechEntry* self);CivRegisterBefore<CivHooks::CvTechEntry_GetAIWeight>(host, &BeforeCvTechEntry_GetAIWeight);CivRegisterAfter<CivHooks::CvTechEntry_GetAIWeight>(host, &AfterCvTechEntry_GetAIWeight);CivRegisterReplace<CivHooks::CvTechEntry_GetAIWeight>(host, &ReplaceCvTechEntry_GetAIWeight);

Code

219/// Additional weight to having AI purchase this220int CvTechEntry::GetAIWeight() const221{222	return m_iAIWeight;223}