-
Notifications
You must be signed in to change notification settings - Fork 233
Typedefs #5648
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
Open
XNTEABDSC
wants to merge
42
commits into
ZeroK-RTS:master
Choose a base branch
from
XNTEABDSC:typedefs
base: master
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
Typedefs #5648
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
93dee8f
luarc
XNTEABDSC 5f8764f
scripts .luarc.json
XNTEABDSC 43fb1f2
.typedefs
XNTEABDSC 3a96d9d
workspace
XNTEABDSC b0108ac
remove VFS.Include nil check
XNTEABDSC c37b3cd
type annotation for include
XNTEABDSC d83be1d
.
XNTEABDSC cf84b8c
Gadget unit_target_priority.lua typo visiblity -> visibility
XNTEABDSC 52a3fa2
add field tag for type Command
XNTEABDSC 52f5b1e
add field tag for type Command
XNTEABDSC a582b2e
add param for Spring.SetCustomCommandDrawData
XNTEABDSC 33669c1
add param for Spring.SetCustomCommandDrawData
XNTEABDSC b5ed758
set param of Spring.SetUnitBlocking
XNTEABDSC fd1108c
remove Spring.GetUnitDefID's nil return
XNTEABDSC c0b7c8c
Spring.CreateUnit's teamID is optional
XNTEABDSC 05e3bb4
Spring.GetAllFeatures
XNTEABDSC dcf8577
Spring.SetCustomCommandDrawData
XNTEABDSC 9281e30
Spring.GetFeatureResurrect
XNTEABDSC 352fb45
Spring.SetFeatureMoveCtrl
XNTEABDSC b1cefef
Spring.GetFeaturePosition Note recoil doc missing
XNTEABDSC 8b8b91e
.luarc.json runtime.path
XNTEABDSC dcb4173
wait we can just use https://github.com/beyond-all-reason/recoil-lua-…
XNTEABDSC 647ae7b
bomberassault.lua duplicate selfDestructAs
XNTEABDSC c5b50b7
.luarc.json
XNTEABDSC 2ea30cb
.luarc.json
XNTEABDSC 34dd119
.luarc.json
XNTEABDSC 1c84c63
Merge branch 'master' into typedefs
XNTEABDSC 148e13c
rename workspace file
XNTEABDSC ad7f3e8
rename workspace file
XNTEABDSC 2cfa2df
gui_sensor_ranges_radar_preview.lua
XNTEABDSC 51563ea
scripts' typedefs
XNTEABDSC 77df3e5
some missing typedefs
XNTEABDSC 9a5056d
.luarc.json
XNTEABDSC a6e82dd
scripts/dronelight.lua missing pivotSpeed
XNTEABDSC c3f0e1e
scripts/shipheavyarty.lua what is Hide(barrels[num][i], SFX.FALL + SF…
XNTEABDSC 02ea2cc
scripts/platehover.lua typo fals
XNTEABDSC bb24798
scripts/raveparty.lua missing LOS_ACCESS
XNTEABDSC da753da
scripts/.luarc.json add cast-local-type
XNTEABDSC d5070eb
.
XNTEABDSC 36a93c3
Merge branch 'typedefs' of https://github.com/XNTEABDSC/Zero-K into t…
XNTEABDSC fbfd40a
.
XNTEABDSC dc9a16d
some other typedefs
XNTEABDSC 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 hidden or 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,3 @@ | ||
| [submodule "recoil-lua-library"] | ||
| path = recoil-lua-library | ||
| url = https://github.com/beyond-all-reason/recoil-lua-library | ||
This file contains hidden or 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,53 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", | ||
| "diagnostics.globalsRegex": ["CMD_.*"], | ||
| "diagnostics.globals": [ | ||
| "Spring", | ||
| "gadget", | ||
| "widget", | ||
| "VFS", | ||
| "UnitDefs", | ||
| "UnitDefNames", | ||
| "FeatureDefs", | ||
| "ModularCommDefsShared", | ||
| "piece", | ||
| "GG", | ||
| "Script", | ||
| "WG", | ||
| "widgetHandler", | ||
| "widget", | ||
| "GameData", | ||
| "Shared", | ||
| "gadget", | ||
| "DEFS", | ||
| "LOG", | ||
| "FeatureDefNames", | ||
| "SendToUnsynced", | ||
| "CMD", | ||
| "WeaponDefs", | ||
| "CMDTYPE", | ||
| "WeaponDefNames" | ||
| //,{ "name": "script", "include": "scripts/**.lua" } | ||
| ], | ||
| "runtime.version": "Lua 5.1", | ||
| "diagnostics.disable": [ | ||
| "duplicate-set-field", | ||
| "cast-local-type" // because it is frequently used | ||
| ], | ||
| "completion.requireSeparator": "/", | ||
| "runtime.path": [ | ||
| "?", | ||
| "?.lua" | ||
| ], | ||
| "runtime.special": { | ||
| "include":"require", | ||
| "VFS.Include":"require", | ||
| "shard_include": "require" | ||
| }, | ||
| "workspace.library": [ | ||
| "recoil-lua-library/**" | ||
| ], | ||
| "workspace.ignoreDir": [ | ||
| "scripts/**" | ||
| ] | ||
| } |
This file contains hidden or 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,13 @@ | ||
| ---Just nil, number, string and boolean datatypes are allowed as arguments! NO tables, userdatas, ... | ||
| ---@param ... nil|number|string|boolean | ||
| function SendToUnsynced(...)end | ||
|
|
||
| ---@param teamID integer | ||
| ---@param f function | ||
| ---@param ... any | ||
| function CallAsTeam(teamID,f,...)end | ||
|
|
||
| ---@param access {ctrl:number|nil,read:number|nil,select:number|nil} | ||
| ---@param f function | ||
| ---@param ... any | ||
| function CallAsTeam(access,f,...)end |
This file contains hidden or 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,73 @@ | ||
| -- ---@diagnostic disable: missing-return | ||
|
|
||
| ---@class table:{[any]:any} | ||
| ---@class list<T>:{[integer]:T} | ||
|
|
||
| ---@class UnitId : integer | ||
| ---@class UnitDefId:integer | ||
|
|
||
| ---@class PlayerId:integer | ||
| ---@class TeamId:integer | ||
| ---@class AllyteamId:integer | ||
| --[==[ | ||
| ---@class timeSec:number | ||
|
|
||
| ---@class frame:integer | ||
| ---@operator div(framePerSec):timeSec | ||
| ---@class framePerSec:integer | ||
| ---@operator mul(timeSec):frame | ||
|
|
||
| ---@class WldDist:number | ||
| ---@operator div(frame):WldSpeed | ||
| ---@operator add(WldDist):WldDist | ||
| ---@operator add(WldSpeed):WldDist | ||
| ---@alias WldxPos WldDist | ||
| ---@alias WldyPos WldDist | ||
| ---@alias WldzPos WldDist | ||
| --[=[ | ||
| ---@class WldxPos:number | ||
| ---@operator div(frame):WldxVel | ||
| ---@operator add(WldxPos):WldxPos | ||
| ---@operator add(WldxVel):WldxPos | ||
| ---@class WldyPos:number | ||
| ---@operator div(frame):WldyVel | ||
| ---@operator add(WldyPos):WldyPos | ||
| ---@operator add(WldyVel):WldyPos | ||
| ---@class WldzPos:number | ||
| ---@operator div(frame):WldzVel | ||
| ---@operator add(WldzPos):WldzPos | ||
| ---@operator add(WldzVel):WldzPos | ||
| ]=] | ||
|
|
||
| ---@class WldSpeed:number | ||
| ---@operator mul(frame):WldDist | ||
| ---@operator unm:WldSpeed | ||
|
|
||
| ---@alias WldxVel WldSpeed | ||
| ---@alias WldyVel WldSpeed | ||
| ---@alias WldzVel WldSpeed | ||
| ]==] | ||
|
|
||
| ---@type {[UnitDefId]:table} | ||
| UnitDefs={} | ||
|
|
||
| ---@type {[string]:table} | ||
| UnitDefNames={} | ||
|
|
||
| ---@class WeaponDefId:integer | ||
|
|
||
|
|
||
| ---@type table<WeaponDefId,table> | ||
| WeaponDefs={} | ||
|
|
||
| ---@type table<string,table> | ||
| WeaponDefNames={} | ||
|
|
||
| ---@class ProjectileId:number | ||
|
|
||
| ---@generic T | ||
| ---@param v T | ||
| ---@param recurse boolean|nil | ||
| ---@param appendTo T|nil | ||
| ---@return T | ||
| function Spring.Utilities.CopyTable(v,recurse,appendTo) end |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -152,7 +152,6 @@ local function MyLoadString(str, filename) | |
| return chunk, str2 | ||
| end | ||
|
|
||
|
|
||
|
Member
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. random whitespace change in an otherwise untouched file, here and in unit_tech_k.lua |
||
| function VFS.Include(filename, enviroment, mode) | ||
| local str = LoadFileSafe(filename, mode) | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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
Submodule recoil-lua-library
added at
dd7ecc
This file contains hidden or 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,51 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", | ||
| "diagnostics.globalsRegex": ["CMD_.*"], | ||
| "diagnostics.globals": [ | ||
| "VFS", | ||
| "UnitDefs", | ||
| "UnitDefNames", | ||
| "FeatureDefs", | ||
| "ModularCommDefsShared", | ||
| "piece", | ||
| "GG", | ||
| "Script", | ||
| "WG", | ||
| "widgetHandler", | ||
| "widget", | ||
| "GameData", | ||
| "Shared", | ||
| "gadget", | ||
| "DEFS", | ||
| "LOG", | ||
| "FeatureDefNames", | ||
| "SendToUnsynced", | ||
| "CMD", | ||
| "WeaponDefs", | ||
| "CMDTYPE", | ||
| "WeaponDefNames", | ||
| "script" | ||
|
|
||
| //,{ "name": "script", "include": "scripts/**.lua" } | ||
| ], | ||
| "runtime.version": "Lua 5.1", | ||
| "diagnostics.disable": [ | ||
| "duplicate-set-field", | ||
| "lowercase-global", | ||
| "cast-local-type" | ||
| ], | ||
| "completion.requireSeparator": "/", | ||
| "runtime.path": [ | ||
| "?", | ||
| "?.lua" | ||
| ], | ||
| "runtime.special": { | ||
| "include":"require", | ||
| "VFS.Include":"require" | ||
| }, | ||
| "workspace.library": [ | ||
| ".." | ||
| ], | ||
| "Lua.workspace.checkThirdParty": false | ||
|
|
||
| } |
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.
Scary, do submodules with with stuff like rapid or infra steam depot?