Skip to content

mission_task_time_of_day

Source: base/tealdef/mission/tasks/utility/mission_task_time_of_day.d.tl

Notes

Task that moves the time of day to a target time.

MissionTaskTimeOfDay

record global base/tealdef/mission/tasks/utility/mission_task_time_of_day.d.tl:3

global record MissionTaskTimeOfDay is MissionInterface.TaskScript<MissionTaskTimeOfDay.State, MissionTaskTimeOfDay.Params>

Load: local time_of_day = ug_require "::/mission/tasks/utility/time_of_day.tl"

Notes

Task (time_of_day) that moves the time of day forward to a target time, at once or in steps per update, and completes when it is reached.

MissionTaskTimeOfDay.Params

record base/tealdef/mission/tasks/utility/mission_task_time_of_day.d.tl:4

record Params

Notes

Target time.

Used in the base game: 2 times in 1 file

base/content/mission/mission/tasks/utility/time_of_day.tl:2

local type P = MissionTaskTimeOfDay.Params

Fields

Name Type Description
hours integer Target hour.
minutes integer Target minute.
stepInMinutes integer Minutes added per update; nil jumps directly to the target.

MissionTaskTimeOfDay.State

record base/tealdef/mission/tasks/utility/mission_task_time_of_day.d.tl:9

record State

Notes

State of the task (seconds since midnight; the target may exceed one day when it wraps).

Used in the base game: 1 time in 1 file

base/content/mission/mission/tasks/utility/time_of_day.tl:1

local type S = MissionTaskTimeOfDay.State

Fields

Name Type Description
initialTimeOfDay integer Time of day at spawn, in seconds.
currentTimeOfDay integer Time of day set last, in seconds.
targetTimeOfDay integer Target time of day, in seconds.