Skip to content

Commit

Permalink
add CommandQueueElement annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
clyfordv committed May 16, 2024
1 parent 1b7efc0 commit de0a3bc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion engine/Sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ local Unit = {}
---| "HoldingPattern"
---| "SiloBuildingAmmo"

---@class CommandQueueElement
---@field _c_object userdata
---@field blueprintId? string -- For build commands
---@field commandType integer -- Integer representation of CommandType, see UnitQueueDataToCommand for details
---@field target? Prop|Unit|Entity -- For commands that target an entity
---@field targetId? EntityId
---@field x number -- X coordinate of command target
---@field y number -- Y coordinate of command target
---@field z number -- Z coordinate of command target

--- Adds a command cap to the unit
---@param category moho.EntityCategory
function Unit:AddBuildRestriction(category)
Expand Down Expand Up @@ -146,7 +156,7 @@ function Unit:GetCargo()
end

--- Returns table of commands queued up for this unit
---@return { }
---@return CommandQueueElement[]
function Unit:GetCommandQueue()
end

Expand Down

0 comments on commit de0a3bc

Please sign in to comment.