CvUnit::changeNoSupply(int)
- Defined in
- CvUnit.cpp, line 19062
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_changeNoSupply
Hooks
static bool BeforeCvUnit_changeNoSupply(CvUnit* self, int iChange);static void AfterCvUnit_changeNoSupply(CvUnit* self, int iChange);static void ReplaceCvUnit_changeNoSupply(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_changeNoSupply>(host, &BeforeCvUnit_changeNoSupply);CivRegisterAfter<CivHooks::CvUnit_changeNoSupply>(host, &AfterCvUnit_changeNoSupply);CivRegisterReplace<CivHooks::CvUnit_changeNoSupply>(host, &ReplaceCvUnit_changeNoSupply);
Code
19062void CvUnit::changeNoSupply(int iChange)19063{19064 m_iNoSupply += iChange;19065}