Bazaar developer reference

CvPlayer::ChangeUnitSupplyMod(int)

Defined in
CvPlayer.cpp, line 15557
Class
CvPlayer
Hook name
CivHooks::CvPlayer_ChangeUnitSupplyMod

Hooks

static bool BeforeCvPlayer_ChangeUnitSupplyMod(CvPlayer* self, int iChange);static void AfterCvPlayer_ChangeUnitSupplyMod(CvPlayer* self, int iChange);static void ReplaceCvPlayer_ChangeUnitSupplyMod(void (*original)(CvPlayer*, int), CvPlayer* self, int iChange);CivRegisterBefore<CivHooks::CvPlayer_ChangeUnitSupplyMod>(host, &BeforeCvPlayer_ChangeUnitSupplyMod);CivRegisterAfter<CivHooks::CvPlayer_ChangeUnitSupplyMod>(host, &AfterCvPlayer_ChangeUnitSupplyMod);CivRegisterReplace<CivHooks::CvPlayer_ChangeUnitSupplyMod>(host, &ReplaceCvPlayer_ChangeUnitSupplyMod);

Code

15557void CvPlayer::ChangeUnitSupplyMod(int iChange)15558{15559	if(iChange != 0)15560	{15561		m_iUnitSupplyMod = (m_iUnitSupplyMod + iChange);15562	}15563}

Calls

Called by