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:
parent
217e579cec
commit
2ee68e74ac
3 changed files with 24 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue