...
Name | Type | Range | Short description |
---|---|---|---|
TrainPositions | int[15] | [ 0 , 47 ] | The position, that a given train currently occupies. (e.g. Train TRAIN_KH_ST_0 occupies KH_ST_0 on startup) |
TrainSpeeds | int[15] | [ -255 , 255 ] | The speed, that a given train currently occupies (e.g. Train TRAIN_KH_ST_0 has speed 100) |
TrackConnections | bool[48][48] | [ 0, 1 ] | TrackConnections[ i ][ j ] → whether or not track i is directly connected to track j in the travel direction allowed by track i |
Error | string | Error messages. (e.g. If a required track signal did not trigger) |
Requirements
For two directly connected Tracks the IDs of the Points that need to be passed (if any) including their direction (branch, straight).
Idea: A big matrix in the form of PoinPositionsPointPositions[48][48][2][2]. So for each set of tracks the points (if any) and as value either branch or straight.
...