Bazaar developer reference

CvGlobals::getUnitInfo()

Defined in
CvGlobals.cpp, line 2979
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getUnitInfo

Hooks

static bool BeforeCvGlobals_getUnitInfo(CvGlobals* self, std::vector<CvUnitEntry*>*& result);static void AfterCvGlobals_getUnitInfo(CvGlobals* self, std::vector<CvUnitEntry*>*& result);static std::vector<CvUnitEntry*>& ReplaceCvGlobals_getUnitInfo(std::vector<CvUnitEntry*>& (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getUnitInfo>(host, &BeforeCvGlobals_getUnitInfo);CivRegisterAfter<CivHooks::CvGlobals_getUnitInfo>(host, &AfterCvGlobals_getUnitInfo);CivRegisterReplace<CivHooks::CvGlobals_getUnitInfo>(host, &ReplaceCvGlobals_getUnitInfo);

Code

2979std::vector<CvUnitEntry*>& CvGlobals::getUnitInfo()2980{2981	return m_pUnits->GetUnitEntries();2982}

Calls

Called by