Bazaar developer reference

CvUnit::ChangeSapperCount(int)

Defined in
CvUnit.cpp, line 19139
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeSapperCount

Hooks

static bool BeforeCvUnit_ChangeSapperCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeSapperCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeSapperCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeSapperCount>(host, &BeforeCvUnit_ChangeSapperCount);CivRegisterAfter<CivHooks::CvUnit_ChangeSapperCount>(host, &AfterCvUnit_ChangeSapperCount);CivRegisterReplace<CivHooks::CvUnit_ChangeSapperCount>(host, &ReplaceCvUnit_ChangeSapperCount);

Code

19139void CvUnit::ChangeSapperCount(int iChange)19140{19141	m_iSapperCount += iChange;19142}

Called by