Bazaar developer reference

CvUnitEntry::GetSpaceshipProject() const

Defined in
CvUnitClasses.cpp, line 1210
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_GetSpaceshipProject

Hooks

static bool BeforeCvUnitEntry_GetSpaceshipProject(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetSpaceshipProject(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetSpaceshipProject(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetSpaceshipProject>(host, &BeforeCvUnitEntry_GetSpaceshipProject);CivRegisterAfter<CivHooks::CvUnitEntry_GetSpaceshipProject>(host, &AfterCvUnitEntry_GetSpaceshipProject);CivRegisterReplace<CivHooks::CvUnitEntry_GetSpaceshipProject>(host, &ReplaceCvUnitEntry_GetSpaceshipProject);

Code

1209/// Does this unit build a spaceship project?1210int CvUnitEntry::GetSpaceshipProject() const1211{1212	return m_iSpaceshipProject;1213}

Called by