Bazaar developer reference

CvGame::resetTurnTimer(bool)

Defined in
CvGame.cpp, line 4651
Class
CvGame
Hook name
CivHooks::CvGame_resetTurnTimer

Hooks

static bool BeforeCvGame_resetTurnTimer(CvGame* self, bool resetGameTurnStart);static void AfterCvGame_resetTurnTimer(CvGame* self, bool resetGameTurnStart);static void ReplaceCvGame_resetTurnTimer(void (*original)(CvGame*, bool), CvGame* self, bool resetGameTurnStart);CivRegisterBefore<CivHooks::CvGame_resetTurnTimer>(host, &BeforeCvGame_resetTurnTimer);CivRegisterAfter<CivHooks::CvGame_resetTurnTimer>(host, &AfterCvGame_resetTurnTimer);CivRegisterReplace<CivHooks::CvGame_resetTurnTimer>(host, &ReplaceCvGame_resetTurnTimer);

Code

4651void CvGame::resetTurnTimer(bool resetGameTurnStart)4652{4653	m_curTurnTimer.Start();4654	m_fCurrentTurnTimerPauseDelta = 0;4655	if(resetGameTurnStart)4656	{4657		m_timeSinceGameTurnStart.Start();4658	}4659}

Calls

Called by