Commit Graph
9 Commits
Author SHA1 Message Date
Shauren b888b1b09f Core/Calendar: Implement different timezone support for ingame calendar
Closes #8390
Closes #29427
2023-11-21 12:25:22 +01:00
Treeston d11c3807b3 Core/Time: Rename GetGameTime{System, Steady}Point methods
The names are a bit unhandy. Rename them (shorter but still meaningful).

GetGameTimeSystemPoint() -> GetSystemTime()
GetGameTimeSteadyPoint() -> Now()

Also add 2 new typedefs:

typedef std::chrono::steady_clock::time_point TimePoint;
typedef std::chrono::system_clock::time_point SystemTimePoint;

Closes #25042

(cherry picked from commit 896b68d5c297b06587645caebc98b704978ecaa7)
2022-01-23 21:36:03 +01:00
Shauren 7e78e25e34 Core/Misc: New function in GameTime allowing selecting std::chrono clock type by template argument 2021-04-20 10:26:04 +02:00
Shauren b231903932 Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port 2020-09-04 13:38:24 +02:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren 11674e2721 Core/Time: Add function returning tm* structure to GameTime 2019-08-24 13:34:05 +02:00
ariel- 378de1fde0 Core/Game: fix dynamic linking
(cherrypicked from 2a6fe27cade65482e2479629661b5208c37ef884)
2019-08-17 20:04:14 +02:00
ariel- c8f4e59921 Core/Misc: remove unneeded semicolon
(cherrypicked from f612b1cb4801285cc1d9446cd91a07291ffc746e)
2019-08-17 20:04:14 +02:00
xinef1 60663d1374 Ensure that all actions are compared to fixed point in time (ie. world update start) (#18910)
- Actions will not be dependent on processing moment
- Increased GameObjects cooldown resolution to milliseconds, fixes arming time of traps to be exactly one second and not something from range (1000, 1999)
- Created GameTime namespace and UpdateTime class and moved there some code out of world

(cherrypicked from 7567cafec84080d26ea513242a1f540a823b8f9d)
2019-08-17 20:04:14 +02:00