ActionBuffer
Last modified by GiorgioGhisotti on 2023/07/11 10:15
Inputs/outputs
Name | Type | Range | Description |
---|---|---|---|
aiActionBuffer | int[ACTION_BUFFER_SIZE][3] | [[ INVALID, MAXINT ], [INVALID, NUM_TRAINS - 1], [INVALID, NUM_TRACKS - 1]] | INVALID terminated buffer containing unique actions received from the GUI. On overflow the buffer will be cleared and new actions will be added as normal from the beginning. The format of an action is [id, train id, destination]. An action with an INVALID id should be considered INVALID. |