Type:SyncTime: Difference between revisions

From Resonite Wiki
create type page
 
explained function of SyncTime and how it differs during runtime and while persisted
 
Line 1: Line 1:
Stores the time in world time that an event has happened. Does not store the time based on a [[Type:DateTime|DateTime]] or [[Type:TimeSpan|TimeSpan]] value.
Keeps track how much world time has passed since an event of the past or how much world time remains until an event in the future. This is done by storing an offset to [[ProtoFlux:WorldTimeDouble|World Time]] as part of the [[Data Model]] of a running [[Session]].
 
Time is "frozen" when the item or world is saved and continues once it is loaded. This is implemented by persisting the time value instead of the offset.

Latest revision as of 22:05, 16 September 2025

Keeps track how much world time has passed since an event of the past or how much world time remains until an event in the future. This is done by storing an offset to World Time as part of the Data Model of a running Session.

Time is "frozen" when the item or world is saved and continues once it is loaded. This is implemented by persisting the time value instead of the offset.