-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotations related to script tasks #6596
Open
lL1l1
wants to merge
19
commits into
FAForever:develop
Choose a base branch
from
lL1l1:annotations/scripttask
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0309b05
Add all script task annotations
lL1l1 58c71c5
Annotations related to the scry ability
lL1l1 c040c18
Annotate table.merged
lL1l1 cc20071
Fix altCursor annotation
lL1l1 b7145da
Change UserUnitCommand annotation formatting
lL1l1 9f4d285
Add the short versions of the `UNITCOMMAND`s
lL1l1 2a1abca
Improve annotation for GetUnitCommandFromCommandCap
lL1l1 9150dee
Annotate `IssueCommand`, `IssueUnitCommand`
lL1l1 8dccdad
Apply formatter
lL1l1 acedfe1
Apply formatter to the scry-related files
lL1l1 a61a303
Add newline after copyright block
lL1l1 6629d31
Add comment for debug.allocinfo
lL1l1 26f48f1
Further documentation ScriptTask class behavior
lL1l1 b5509fa
Add a test task with some other debug stuff
lL1l1 8fb4df9
Revert "Add a test task with some other debug stuff"
lL1l1 c6b29fb
Create other.6596.md
lL1l1 b3449f7
Improve TaskTick comment
lL1l1 63b9d68
Remove unused local in TargetLocation
lL1l1 4f7bcef
Correct table.merged comment
lL1l1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- (#6596) Annotate files related to scripted tasks like the Scry ability of the Eye of Rhianne or unit Enhancements. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -602,10 +602,37 @@ end | |
function GetUnitCommandDataOfUnit(unit) | ||
end | ||
|
||
--- Givens a `RULEUCC` type command, return the equivalent `UNITCOMMAND` command. | ||
--- See `/lua/ui/game/commandgraphparams.lua#CommandGraphParams`. | ||
---@param rule CommandCap | ||
---@return string | ||
--- Given a `RULEUCC` type command, return the equivalent `UNITCOMMAND` command or "None" otherwise. | ||
--- See `/lua/ui/game/commandgraphparams.lua#CommandGraphParams` or `UserUnitCommand`. | ||
--[[``` | ||
RULEUCC_Move = Move | ||
RULEUCC_Stop = Stop | ||
RULEUCC_Attack = Attack | ||
RULEUCC_Guard = Guard | ||
RULEUCC_Patrol = Patrol | ||
RULEUCC_RetaliateToggle = None | ||
RULEUCC_Repair = Repair | ||
RULEUCC_Capture = Capture | ||
RULEUCC_Transport = TransportUnloadUnits | ||
RULEUCC_CallTransport = TransportLoadUnits | ||
RULEUCC_Nuke = Nuke | ||
RULEUCC_Tactical = Tactical | ||
RULEUCC_Teleport = Teleport | ||
RULEUCC_Ferry = Ferry | ||
RULEUCC_SiloBuildTactical = BuildSiloTactical | ||
RULEUCC_SiloBuildNuke = BuildSiloNuke | ||
RULEUCC_Sacrifice = Sacrifice | ||
RULEUCC_Pause = Pause | ||
RULEUCC_Overcharge = OverCharge | ||
RULEUCC_Dive = Dive | ||
RULEUCC_Reclaim = Reclaim | ||
RULEUCC_SpecialAction = SpecialAction | ||
RULEUCC_Dock = None | ||
RULEUCC_Script = None | ||
RULEUCC_Invalid = None | ||
```]] | ||
---@param rule EngineCommandCap | ||
---@return string | "None" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could turn this into a list of options instead of just a string. |
||
function GetUnitCommandFromCommandCap(rule) | ||
end | ||
|
||
|
@@ -810,24 +837,24 @@ end | |
function IssueBlueprintCommandToUnit(unit, command, blueprintid, count, clear) | ||
end | ||
|
||
--- | ||
---@param command any | ||
---@param string any? | ||
--- Issue a command to the current selection. | ||
---@param command UserUnitCommand # Will crash the game if not a valid command. | ||
---@param luaParams? table | string | number | boolean # Will crash the game if the table contains non-serializable types. | ||
---@param clear boolean? | ||
function IssueCommand(command, string, clear) | ||
function IssueCommand(command, luaParams, clear) | ||
end | ||
|
||
--- | ||
---@param clear boolean | ||
function IssueDockCommand(clear) | ||
end | ||
|
||
--- | ||
--- Issue a command to the given units. | ||
---@param unitList UserUnit[] | ||
---@param command string | ||
---@param string? string | ||
---@param command UserUnitCommand # Will crash the game if not a valid command. | ||
---@param luaParams? table | string | number | boolean # Will crash the game if the table contains non-serializable types. | ||
---@param clear? boolean | ||
function IssueUnitCommand(unitList, command, string, clear) | ||
function IssueUnitCommand(unitList, command, luaParams, clear) | ||
end | ||
|
||
--- Given a MS Windows char code, returns the Maui char code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is super interesting!