Bazaar developer reference

CvUnit::ChangeReconCount(int)

Defined in
CvUnit.cpp, line 16536
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeReconCount

Hooks

static bool BeforeCvUnit_ChangeReconCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeReconCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeReconCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeReconCount>(host, &BeforeCvUnit_ChangeReconCount);CivRegisterAfter<CivHooks::CvUnit_ChangeReconCount>(host, &AfterCvUnit_ChangeReconCount);CivRegisterReplace<CivHooks::CvUnit_ChangeReconCount>(host, &ReplaceCvUnit_ChangeReconCount);

Code

16536void CvUnit::ChangeReconCount(int iChange)16537{16538	if(iChange != 0)16539	{16540		m_iReconCount += iChange;16541	}16542}

Calls

Called by