Bazaar developer reference

CvPreGame::setTurnTimer(TurnTimerTypes)

Defined in
CvPreGame.cpp, line 2981
Hook name
CivHooks::CvPreGame_setTurnTimer

Hooks

static bool BeforeCvPreGame_setTurnTimer(TurnTimerTypes t);static void AfterCvPreGame_setTurnTimer(TurnTimerTypes t);static void ReplaceCvPreGame_setTurnTimer(void (*original)(TurnTimerTypes), TurnTimerTypes t);CivRegisterBefore<CivHooks::CvPreGame_setTurnTimer>(host, &BeforeCvPreGame_setTurnTimer);CivRegisterAfter<CivHooks::CvPreGame_setTurnTimer>(host, &AfterCvPreGame_setTurnTimer);CivRegisterReplace<CivHooks::CvPreGame_setTurnTimer>(host, &ReplaceCvPreGame_setTurnTimer);

Code

2981void setTurnTimer(TurnTimerTypes t)2982{2983	s_turnTimerType = t;2984	Database::SingleResult kResult;2985	if(!DB.SelectAt(kResult, "TurnTimers", "ID", static_cast<int>(t)))2986	{2987		CvAssertMsg(false, "Cannot find turn timer info.");2988	}2989	s_turnTimer.dirtyGet().CacheResult(kResult);2990}

Calls

Called by