Skip to content

Commit

Permalink
Rework commandmode.lua to make it easier to maintain (FAForever#6200)
Browse files Browse the repository at this point in the history
Functionally the file should be the same.
  • Loading branch information
clyfordv authored Jun 9, 2024
1 parent 2251be6 commit 4eed87d
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 151 deletions.
2 changes: 1 addition & 1 deletion engine/User.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function DecreaseBuildCountInQueue(queueIndex, count)
end

---Deletes a command from the player command queue.
---Each player has an array that holds all commands for all units, the commandID indexes to this array.
---Each player has an array that holds all commands for all units, the commandID indexes to that array.
---Note: this function doesn't receive any units as arguments--you will have to retrieve the commandId by UserUnit:GetCommandQueue()[commandIndex].ID
---@param commandId number commandId, from UserUnit:GetCommandQueue()[commandIndex].ID
function DeleteCommand(commandId)
Expand Down
1 change: 1 addition & 0 deletions lua/ui/game/commandmeshes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
commandMeshResources = {
Move = { '/meshes/game/Move_lod0.scm', '/meshes/game/Move_albedo.dds' },
Attack = { '/meshes/game/Attack_lod0.scm', '/meshes/game/Attack_albedo.dds' },
AggressiveMove = { '/meshes/game/Attack_lod0.scm', '/meshes/game/Attack_albedo.dds' },
Guard = { '/meshes/game/Assist_lod0.scm', '/meshes/game/Assist_albedo.dds' },
Capture = { '/meshes/game/Capture_lod0.scm', '/meshes/game/Capture_albedo.dds' },
Ferry = { '/meshes/game/Ferry_lod0.scm', '/meshes/game/Ferry_albedo.dds' },
Expand Down
Loading

0 comments on commit 4eed87d

Please sign in to comment.