CommandQueue busy function

This commit is contained in:
Alexey 2025-07-21 18:42:51 +03:00
commit 727ce78e95

View file

@ -60,3 +60,9 @@ func current_command(side: CommandQueue.Side) -> CommandQueue.Command:
return DEFAULT_COMMAND return DEFAULT_COMMAND
var command = command_queue[side].front() var command = command_queue[side].front()
return command 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