UTC Time Tracking
IdleKit uses a custom implementation of ISystemClock
called ServerClock
which keeps track of real server-based UTC time and prevents time-based cheating. It does so by requesting the server time from our endpoint at the start of the game, and then tracking the realtime offset from that time to be able to tell in-game time.
However, in order for this system to work, your IdleKit project needs to make sure to load in an addressable ScritableObject called ServerClockConfig
which is located in IdleKit Framwork/idlekit-core/Runtime/Implementation/Utilities
. This asset is used by ServerClock
to In order for the time tracking to work correctly, make sure to load this object by marking it with an addressables tag and using the LoadAssetsPhase
during IdleKit's startup.