Bazaar developer reference

CvGame::SetUnitedNationsCountdown(int)

Defined in
CvGame.cpp, line 5282
Class
CvGame
Hook name
CivHooks::CvGame_SetUnitedNationsCountdown

Hooks

static bool BeforeCvGame_SetUnitedNationsCountdown(CvGame* self, int iValue);static void AfterCvGame_SetUnitedNationsCountdown(CvGame* self, int iValue);static void ReplaceCvGame_SetUnitedNationsCountdown(void (*original)(CvGame*, int), CvGame* self, int iValue);CivRegisterBefore<CivHooks::CvGame_SetUnitedNationsCountdown>(host, &BeforeCvGame_SetUnitedNationsCountdown);CivRegisterAfter<CivHooks::CvGame_SetUnitedNationsCountdown>(host, &AfterCvGame_SetUnitedNationsCountdown);CivRegisterReplace<CivHooks::CvGame_SetUnitedNationsCountdown>(host, &ReplaceCvGame_SetUnitedNationsCountdown);

Code

5281/// United Nations diplo victory countdown5282void CvGame::SetUnitedNationsCountdown(int iValue)5283{5284	if(iValue != GetUnitedNationsCountdown())5285	{5286		m_iUnitedNationsCountdown = iValue;5287	}5288}

Calls

Called by