TrainScheduleStop
classOne entry of a train schedule
- read-only Assigning to the field raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| id | read-only | integer | Number of the stop, the same on every peer and across saves |
| station | read-only | string | Name of the station the train goes to |
| condition | read-only | table? | When the train leaves the station, in the shape Train.set_condition takes |
Standard members (4)
These members are available on all classes of this kind.
| TrainScheduleStop.cast(object) | Trying to cast Object into TrainScheduleStop |
| TrainScheduleStop.get_class() | Return TrainScheduleStop class object |
| TrainScheduleStop.new(parent, name) | Creates a new TrainScheduleStop instance |
| TrainScheduleStop.new_simple() | Creates a new TrainScheduleStop instance |
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object
Used by
- Train.stops field
- Train.current_stop field
- Train.add_stop param
- Train.remove_stop param
- Train.move_stop param
- Train.move_stop param
- Train.set_stop_station param
- Train.set_condition param
- Train.set_current_stop param