...
train_setup: int[NUM_TRAINS]
index: track train number
value: train number, negativ for backwards driving trainstrack number
destination: int[NUM_TRAINS]
index. train number
value: track number
speeds: int[NUM_TRAINS][4]
index: train number
index: 0-3
value: 1-127
...
track_speeds: int[TRACK_SEGMENTS][2]
0: off
1 to 127: forward speed
-1 to -127: backward speed
signals: int[TRACK_SEGMENTS][2]
0: off
1: red
2: yellow
3: green
lamps: bool[]
true: on
false: off
cross_light: int
0: off
1: red
2: yellow
bell: bool
true: on
false: off
points: bool[NUM_POINTS]
true: branch
false: straight
gate: bool
true: down
false: up
reached: bool[NUM_TRAINS]
index: train number
value: true: destination reached; false: destination not yet reached
Scheduler:
schedule: int[NUM_TRAINS]
index: train number
value: next save track on the way to destination
...