Skip to content

Commit

Permalink
Update ChangeUnitArmy annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 26, 2024
1 parent 59c3ae2 commit 4c84ede
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions engine/Sim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ end
function AttachBeamToEntity(emitter, entity, bone, army)
end

-- engine patched to allow commanders to be able to be shared

--- changes the army of a unit, returning the new unit and destroying the old one
--- Changes the army of a unit, returning the new unit and destroying the old one
--- Modified by an engine patch to allow commanders to be given.
--- `COMMAND` units are filtered out in SimHooks.lua for legacy compatibility.
---@param unit Unit
---@param army Army
---@return Unit
function ChangeUnitArmy(unit, army)
---@param allowCommanders? boolean
---@return Unit|nil
function ChangeUnitArmy(unit, army, allowCommanders)
end

--- returns true if cheats are enabled and logs the cheat attempt no matter what
Expand Down

0 comments on commit 4c84ede

Please sign in to comment.