...
track_contacts: int[NUM_TRACKS][2]
0: no signal
1: forwards
2: backwards
3: uni
cross_contacts: int[NUM_CONTACTS]
0: no signal
1: closing
2: opening
...
track_speeds: int[NUM_TRACKS]
0: off
1 to 127: forward speed
-1 to -127: backward speed
signals: int[NUM_TRACKS][2]
0: off
1: red
2: yellow
3: green
lamps: bool[NUM_LAMPS]
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
...