#498 functioning pocket manual unit controls

This commit is contained in:
Mikayla Fischler
2024-09-05 22:18:59 -04:00
parent 66fae0695c
commit ab11ff03b5
3 changed files with 54 additions and 5 deletions

View File

@@ -316,13 +316,11 @@ function process.fac_ack(command, success)
end
-- handle a unit command acknowledgement
---@param unit any unit ID (invalid index protected)
---@param unit integer unit ID
---@param command UNIT_COMMAND command
---@param success boolean if the command was successful
function process.unit_ack(unit, command, success)
if pctl.commands.unit[unit] then
cmd_ack(pctl.commands.unit[unit][command], success)
end
cmd_ack(pctl.commands.unit[unit][command], success)
end
--#region One-Way Commands (no acknowledgements)