Bazaar developer reference

CvUnitEntry::IsPrereqResources() const

Defined in
CvUnitClasses.cpp, line 1019
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_IsPrereqResources

Hooks

static bool BeforeCvUnitEntry_IsPrereqResources(const CvUnitEntry* self, bool& result);static void AfterCvUnitEntry_IsPrereqResources(const CvUnitEntry* self, bool& result);static bool ReplaceCvUnitEntry_IsPrereqResources(bool (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_IsPrereqResources>(host, &BeforeCvUnitEntry_IsPrereqResources);CivRegisterAfter<CivHooks::CvUnitEntry_IsPrereqResources>(host, &AfterCvUnitEntry_IsPrereqResources);CivRegisterReplace<CivHooks::CvUnitEntry_IsPrereqResources>(host, &ReplaceCvUnitEntry_IsPrereqResources);

Code

1018/// Does it open up resources (e.g. workboat)1019bool CvUnitEntry::IsPrereqResources() const1020{1021	return m_bPrereqResources;1022}

Called by