Bazaar developer reference

CvUnit::cargoSpace() const

Defined in
CvUnit.cpp, line 15333
Class
CvUnit
Hook name
CivHooks::CvUnit_cargoSpace

Hooks

static bool BeforeCvUnit_cargoSpace(const CvUnit* self, int& result);static void AfterCvUnit_cargoSpace(const CvUnit* self, int& result);static int ReplaceCvUnit_cargoSpace(int (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_cargoSpace>(host, &BeforeCvUnit_cargoSpace);CivRegisterAfter<CivHooks::CvUnit_cargoSpace>(host, &AfterCvUnit_cargoSpace);CivRegisterReplace<CivHooks::CvUnit_cargoSpace>(host, &ReplaceCvUnit_cargoSpace);

Code

15333int CvUnit::cargoSpace() const15334{15335	VALIDATE_OBJECT15336	return m_iCargoCapacity;15337}

Calls

Called by