Bazaar developer reference

CvPromotionEntry::GetCargoChange() const

Defined in
CvPromotionClasses.cpp, line 1034
Class
CvPromotionEntry
Hook name
CivHooks::CvPromotionEntry_GetCargoChange

Hooks

static bool BeforeCvPromotionEntry_GetCargoChange(const CvPromotionEntry* self, int& result);static void AfterCvPromotionEntry_GetCargoChange(const CvPromotionEntry* self, int& result);static int ReplaceCvPromotionEntry_GetCargoChange(int (*original)(const CvPromotionEntry*), const CvPromotionEntry* self);CivRegisterBefore<CivHooks::CvPromotionEntry_GetCargoChange>(host, &BeforeCvPromotionEntry_GetCargoChange);CivRegisterAfter<CivHooks::CvPromotionEntry_GetCargoChange>(host, &AfterCvPromotionEntry_GetCargoChange);CivRegisterReplace<CivHooks::CvPromotionEntry_GetCargoChange>(host, &ReplaceCvPromotionEntry_GetCargoChange);

Code

1033/// Accessor: The amount of cargo a unit can carry1034int CvPromotionEntry::GetCargoChange() const1035{1036	return m_iCargoChange;1037}

Called by