CommandQueue busy function
This commit is contained in:
parent
7595cd54d8
commit
727ce78e95
1 changed files with 6 additions and 0 deletions
|
@ -60,3 +60,9 @@ func current_command(side: CommandQueue.Side) -> CommandQueue.Command:
|
|||
return DEFAULT_COMMAND
|
||||
var command = command_queue[side].front()
|
||||
return command
|
||||
|
||||
func sides_are_busy(sides: Array[CommandQueue.Side]) -> bool:
|
||||
for side in sides:
|
||||
if current_command(side) == DEFAULT_COMMAND:
|
||||
return false
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue