Bazaar developer reference

CvPreGame::setTurnTimer(const CvString &)

Defined in
CvPreGame.cpp, line 2992
Hook name
CivHooks::CvPreGame_setTurnTimer_with_const_CvString

Hooks

static bool BeforeCvPreGame_setTurnTimer_with_const_CvString(const CvString& t);static void AfterCvPreGame_setTurnTimer_with_const_CvString(const CvString& t);static void ReplaceCvPreGame_setTurnTimer_with_const_CvString(void (*original)(const CvString&), const CvString& t);CivRegisterBefore<CivHooks::CvPreGame_setTurnTimer_with_const_CvString>(host, &BeforeCvPreGame_setTurnTimer_with_const_CvString);CivRegisterAfter<CivHooks::CvPreGame_setTurnTimer_with_const_CvString>(host, &AfterCvPreGame_setTurnTimer_with_const_CvString);CivRegisterReplace<CivHooks::CvPreGame_setTurnTimer_with_const_CvString>(host, &ReplaceCvPreGame_setTurnTimer_with_const_CvString);

Code

2992void setTurnTimer(const CvString& t)2993{2994	Database::SingleResult kResult;2995	if(!DB.SelectAt(kResult, "TurnTimers", "Type", t.c_str()))2996	{2997		CvAssertMsg(false, "Cannot find turn timer info.");2998	}2999	s_turnTimer.dirtyGet().CacheResult(kResult);30003001	s_turnTimerType = (TurnTimerTypes)s_turnTimer.get().GetID();3002}

Calls

Called by