Bazaar developer reference

CvGame::TurnTimerSync(float, float)

Defined in
CvGame.cpp, line 1995
Class
CvGame
Hook name
CivHooks::CvGame_TurnTimerSync

Hooks

static bool BeforeCvGame_TurnTimerSync(CvGame* self, float fCurTurnTime, float fTurnStartTime);static void AfterCvGame_TurnTimerSync(CvGame* self, float fCurTurnTime, float fTurnStartTime);static void ReplaceCvGame_TurnTimerSync(void (*original)(CvGame*, float, float), CvGame* self, float fCurTurnTime, float fTurnStartTime);CivRegisterBefore<CivHooks::CvGame_TurnTimerSync>(host, &BeforeCvGame_TurnTimerSync);CivRegisterAfter<CivHooks::CvGame_TurnTimerSync>(host, &AfterCvGame_TurnTimerSync);CivRegisterReplace<CivHooks::CvGame_TurnTimerSync>(host, &ReplaceCvGame_TurnTimerSync);

Code

1995void CvGame::TurnTimerSync(float fCurTurnTime, float fTurnStartTime)1996{1997	m_curTurnTimer.StartWithOffset(fCurTurnTime);1998	m_timeSinceGameTurnStart.StartWithOffset(fTurnStartTime);1999}

Calls

Called by