diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-25 00:42:23 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-25 00:42:23 +0200 |
commit | cc731f47324cf58c899b242e34d661b651d3acef (patch) | |
tree | a096e4563ff09b208ff4697635baab2ec85395b4 /src/Timer.h | |
parent | CReplay::StorePedAnimation (diff) | |
download | re3-cc731f47324cf58c899b242e34d661b651d3acef.tar re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.gz re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.bz2 re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.lz re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.xz re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.zst re3-cc731f47324cf58c899b242e34d661b651d3acef.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Timer.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Timer.h b/src/Timer.h index 10bb5d84..b8b5864d 100644 --- a/src/Timer.h +++ b/src/Timer.h @@ -14,14 +14,24 @@ class CTimer static bool &m_CodePause; public: static float GetTimeStep(void) { return ms_fTimeStep; } + static inline void SetTimeStep(float ts) { ms_fTimeStep = ts; } static float GetTimeStepNonClipped(void) { return ms_fTimeStepNonClipped; } - static void SetTimeStep(float ts) { ms_fTimeStep = ts; } + static inline void SetTimeStepNonClipped(float ts) { ms_fTimeStepNonClipped = ts; } static uint32 GetFrameCounter(void) { return m_FrameCounter; } + static inline void SetFrameCounter(uint32 fc) { m_FrameCounter = fc; } static uint32 GetTimeInMilliseconds(void) { return m_snTimeInMilliseconds; } + static inline void SetTimeInMilliseconds(uint32 t) { m_snTimeInMilliseconds = t; } + static uint32 GetTimeInMillisecondsNonClipped(void) { return m_snTimeInMillisecondsNonClipped; } + static inline void SetTimeInMillisecondsNonClipped(uint32 t) { m_snTimeInMillisecondsNonClipped = t; } + static uint32 GetTimeInMillisecondsPauseMode(void) { return m_snTimeInMillisecondsPauseMode; } + static inline void SetTimeInMillisecondsPauseMode(uint32 t) { m_snTimeInMillisecondsPauseMode = t; } + static uint32 GetPreviousTimeInMilliseconds(void) { return m_snPreviousTimeInMilliseconds; } + static inline void SetPreviousTimeInMilliseconds(uint32 t) { m_snPreviousTimeInMilliseconds = t; } + static float GetTimeScale(void) { return ms_fTimeScale; } + static inline void SetTimeScale(float ts) { ms_fTimeScale = ts; } static inline bool GetIsPaused() { return m_UserPause || m_CodePause; } static inline bool GetIsUserPaused() { return m_UserPause; } - static inline void SetTimeScale(float ts) { ms_fTimeScale = ts; } static void Initialise(void); static void Shutdown(void); |