Enqueue the incoming commands at the next tick

This sync commands for all users and in the future will let you view which moves and commands are currently being executed
This commit is contained in:
Marc Di Luzio 2020-06-09 20:44:25 +01:00
parent 217e579cec
commit 2ee68e74ac
3 changed files with 24 additions and 4 deletions

View file

@ -127,6 +127,7 @@ func TestHandleCommand(t *testing.T) {
assert.NoError(t, err, "Couldn't get rover attribs")
// Tick the command queues to progress the move command
s.world.EnqueueAllIncoming()
s.world.ExecuteCommandQueues()
attribs2, err := s.world.RoverAttributes(inst)