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

@ -30,6 +30,7 @@ func TestCommand_Move(t *testing.T) {
assert.NoError(t, world.Enqueue(a, moveCommand), "Failed to execute move command")
// Tick the world
world.EnqueueAllIncoming()
world.ExecuteCommandQueues()
newatributes, err := world.RoverAttributes(a)