Something else I’ve found, it looks like you can queue more than one command per tick. These logs were generated if my bot sent more than one command per tick, you can see that they both get processed (the send command
log lines only get printed inside the main GameLoop
function if the command is being processed):
2023-05-13T15:55:55.8283758+00:00 Information CyFi.CyFiEngine - Tick: 70 *************************************************
2023-05-13T15:55:55.8292468+00:00 Information CyFi.CyFiEngine - bot States: X 38, Y 20
2023-05-13T15:55:55.8298865+00:00 Information CyFi.CyFiEngine - Bot: 9e30fec5-016a-4fe4-8acf-0a82ee7bdfc6 send command UP
Current state of bot: CyFi.Physics.Movement.Falling
update input
2023-05-13T15:55:55.8300880+00:00 Information CyFi.CyFiEngine - Bot: 9e30fec5-016a-4fe4-8acf-0a82ee7bdfc6 send command DOWN
Current state of bot: CyFi.Physics.Movement.Falling