Changes

Jump to navigation Jump to search
→‎Game loop: + TimeChanged
Line 411: Line 411:  
  |name  = DayEnding
 
  |name  = DayEnding
 
  |desc  = Raised before the game ends the current day. This happens before it starts setting up the next day and before [[#Saving|<tt>Saving</tt>]].
 
  |desc  = Raised before the game ends the current day. This happens before it starts setting up the next day and before [[#Saving|<tt>Saving</tt>]].
 +
}}
 +
{{/event
 +
|group = GameLoop
 +
|name  = TimeChanged
 +
|desc  = Raised after the in-game clock time changes, which happens in intervals of ten in-game minutes.
 +
 +
|arg name 1 = <tt>e.OldTime</tt>
 +
|arg type 1 = <tt>int</tt>
 +
|arg desc 1 = The previous time of day in 24-hour notation (like 1600 for 4pm). The clock time resets when the player sleeps, so 2am (before sleeping) is 2600.
 +
 +
|arg name 2 = <tt>e.NewTime</tt>
 +
|arg type 2 = <tt>int</tt>
 +
|arg desc 2 = The current time of day in 24-hour notation (like 1600 for 4pm). The clock time resets when the player sleeps, so 2am (before sleeping) is 2600.
 
}}
 
}}
 
{{/event
 
{{/event
translators
8,445

edits

Navigation menu