Bazaar developer reference

CvCity::SetWeLoveTheKingDayCounter(int)

Defined in
CvCity.cpp, line 10155
Class
CvCity
Hook name
CivHooks::CvCity_SetWeLoveTheKingDayCounter

Hooks

static bool BeforeCvCity_SetWeLoveTheKingDayCounter(CvCity* self, int iValue);static void AfterCvCity_SetWeLoveTheKingDayCounter(CvCity* self, int iValue);static void ReplaceCvCity_SetWeLoveTheKingDayCounter(void (*original)(CvCity*, int), CvCity* self, int iValue);CivRegisterBefore<CivHooks::CvCity_SetWeLoveTheKingDayCounter>(host, &BeforeCvCity_SetWeLoveTheKingDayCounter);CivRegisterAfter<CivHooks::CvCity_SetWeLoveTheKingDayCounter>(host, &AfterCvCity_SetWeLoveTheKingDayCounter);CivRegisterReplace<CivHooks::CvCity_SetWeLoveTheKingDayCounter>(host, &ReplaceCvCity_SetWeLoveTheKingDayCounter);

Code

10154///Sets number of turns left in WLTKD10155void CvCity::SetWeLoveTheKingDayCounter(int iValue)10156{10157	VALIDATE_OBJECT10158	m_iWeLoveTheKingDayCounter = iValue;10159}

Calls

Called by