add_wait_condition(record_index, condition_index, type) | Adds the given wait condition to the given record. | |
Adds the given wait condition to the given record. | ||
remove_wait_condition(record_index, condition_index) | Removes the given wait condition from the given record. | |
Removes the given wait condition from the given record. | ||
set_wait_condition_mode(record_index, condition_index, mode) | Sets the comparison on the given wait condition. | |
Sets the comparison on the given wait condition. | ||
change_wait_condition(record_index, condition_index, wait_condition) | Changes the wait condition on the given record to the new values. | |
Changes the wait condition on the given record to the new values. | ||
add_record(data) | Adds a record to the end of the current schedule using the provided data. | |
Adds a record to the end of the current schedule using the provided data. | ||
remove_record(index) | Removes the record at the given index, if the index is valid. | |
Removes the record at the given index, if the index is valid. | ||
copy_record(source_schedule, source_index, destination_index) | Copies the record from the given schedule at the given index into this schedule at the given index. | |
Copies the record from the given schedule at the given index into this schedule at the given index. | ||
add_interrupt(interrupt) | Adds the given interrupt to the schedule if an interrupt with the given name does not already exist. | |
Adds the given interrupt to the schedule if an interrupt with the given name does not already exist. | ||
remove_interrupt(index) | Removes the interrupt at the given index, if the index is valid. | |
Removes the interrupt at the given index, if the index is valid. | ||
activate_interrupt(index) | Activates the interrupt at the given index, if the index is valid. | |
Activates the interrupt at the given index, if the index is valid. | ||
change_interrupt(index, interrupt) | Changes the interrupt at the given index to the provided values. [...] | |
Changes the interrupt at the given index to the provided values. [...] | ||
rename_interrupt(old_name, new_name) | ||
go_to_station(schedule_index) | ||
set_stopped(stopped) | ||
set_allow_unloading(index, allow) | Sets if unloading is allowed at the given schedule index. | |
Sets if unloading is allowed at the given schedule index. | ||
drag_record(from, to, interrupt_index?) | ||
drag_interrupt(from, to) | ||
drag_wait_condition(index, from, to) | ||
get_record(index) | → ScheduleRecord? | |
get_interrupt(index) | → ScheduleInterrupt? | |
get_wait_condition(schedule_index, condition_index) | → WaitCondition? | Gets the wait condition at the given index if one exists. |
Gets the wait condition at the given index if one exists. | ||
get_wait_conditions(schedule_index) | → array[WaitCondition]? | Gets the wait conditions at the given index if they exist. |
Gets the wait conditions at the given index if they exist. | ||
get_wait_condition_count(index) | → uint? | The number of wait conditions in the given schedule record. |
The number of wait conditions in the given schedule record. | ||
get_record_count(interrupt_index?) | → uint? | If the given index is invalid, |
If the given index is invalid, | ||
owner | :: R LuaTrain or LuaSpacePlatform? | The owner of this schedule. |
The owner of this schedule. | ||
interrupt_count | :: R uint | |
current | :: R uint | |
tick_of_last_schedule_change | :: R MapTick | |
tick_of_last_activity | :: RW MapTick | Note: when writing, value must not be larger than LuaGameScript::tick |
Note: when writing, value must not be larger than LuaGameScript::tick | ||
ticks_in_station | :: R MapTick | |
group | :: RW string? | The group this schedule is part of, if any. |
The group this schedule is part of, if any. | ||
valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] |
record_index | :: ScheduleRecordPosition | |
condition_index | :: uint | |
mode | :: string |
|
|
record_index | :: ScheduleRecordPosition | |
condition_index | :: uint | |
wait_condition | :: WaitCondition |
index | :: ScheduleRecordPosition | The record to change. |
The record to change. | ||
from | :: uint | |
to | :: uint |