Skip to content

Commit a72d0bb

Browse files
authored
Merge pull request #2 from Questie/injector
Injector
2 parents 3d2b67b + 1d3c10f commit a72d0bb

84 files changed

Lines changed: 738 additions & 15331 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
// Due to the merge nature of this there are some duplication issues.
1717
"duplicate-doc-field",
1818
"duplicate-doc-alias",
19+
// Some string concatenations are done in a way that confuses the type checker.
20+
"ambiguity-1",
1921
// Not all type annotations are accurate in the WoW API, so we disable these type mismatch warnings.
2022
"return-type-mismatch",
2123
// Not all type annotations are accurate in the WoW API, so we disable these type mismatch warnings.
2224
"param-type-mismatch",
25+
// The Lua checker sometimes gets a number assignment but somewhere else it gets assigned nil.
26+
"assign-type-mismatch",
2327
// Because we add casts after the fact to satisfy the type checker, we disable this warning.
2428
"cast-local-type",
2529
// Classes do not like injecting fields but that requires refactoring which we can't do.
@@ -32,5 +36,7 @@
3236
"Lua.workspace.ignoreDir": [
3337
".vscode",
3438
"generator",
35-
]
39+
],
40+
"Lua.workspace.maxPreload": 5000,
41+
"Lua.workspace.preloadFileSize": 3000,
3642
}

WoW-API/.luarc.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
// This is the config file used for manual LuaLS runs
3+
// cd WoW-API
4+
// lua-language-server --check=. --check_format=json --metapath=../.lua-data/meta --logpath=../.lua-data/log --configpath=./.luarc.json
5+
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
6+
"workspace.ignoreDir": [
7+
".git",
8+
".vscode"
9+
],
10+
"workspace.preloadFileSize": 3000,
11+
"workspace.maxPreload": 2000,
12+
"diagnostics.ignoredFiles": "Opened",
13+
"diagnostics.libraryFiles": "Opened",
14+
"workspace.useGitIgnore": false,
15+
"diagnostics.groupFileStatus": {
16+
"await": "Any"
17+
},
18+
"diagnostics.severity": {},
19+
"diagnostics.disable": [
20+
// We don't care about undefined globals because the WoW API defines a lot of them.
21+
"undefined-global",
22+
// A lot of the code at blizzard has a ton of redundant parameters for some reason.
23+
"redundant-parameter",
24+
// Some languages support multiple assignment counts, but Lua does not. (e.g. local a, b = 1)
25+
"unbalanced-assignments",
26+
// Some functions say the don't support certain parameters, but they actually do. (GetAchievementCriteriaInfo vs GetAchievementCriteriaInfoByID)
27+
// So we disable this check.
28+
"missing-parameter",
29+
// Some of Blizzard's code uses lowercase globals, which is against Lua conventions.
30+
"lowercase-global",
31+
// Deprecated functions and features are common in the WoW API, so we disable this warning.
32+
"deprecated",
33+
// Due to the merge nature of this there are some duplication issues.
34+
"duplicate-doc-field",
35+
"duplicate-doc-alias",
36+
// Some string concatenations are done in a way that confuses the type checker.
37+
"ambiguity-1",
38+
// Not all type annotations are accurate in the WoW API, so we disable these type mismatch warnings.
39+
"return-type-mismatch",
40+
// Not all type annotations are accurate in the WoW API, so we disable these type mismatch warnings.
41+
"param-type-mismatch",
42+
// The Lua checker sometimes gets a number assignment but somewhere else it gets assigned nil.
43+
"assign-type-mismatch",
44+
// Because we add casts after the fact to satisfy the type checker, we disable this warning.
45+
"cast-local-type",
46+
// Classes do not like injecting fields but that requires refactoring which we can't do.
47+
"inject-field",
48+
// Not checking nil values is common in WoW API code.
49+
"need-check-nil",
50+
// Trailing spaces are not a big deal.
51+
"trailing-space",
52+
53+
// Only for WoW API LuaLanguageServer settings:
54+
// We haven't defined all fields for all objects yet.
55+
"undefined-field"
56+
],
57+
"diagnostics.enable": true,
58+
"runtime.version": "Lua 5.1",
59+
"runtime.builtin": {
60+
"basic": "enable",
61+
"debug": "enable",
62+
"io": "enable",
63+
"math": "enable",
64+
"os": "enable",
65+
"package": "enable",
66+
"string": "enable",
67+
"table": "enable",
68+
"utf8": "disable",
69+
"builtin": "enable"
70+
},
71+
"diagnostics.globals": [],
72+
"hint.enable": false
73+
}

WoW-API/COMMIT_HASHES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This API documentation was generated using the following commit hashes:
55
- **vscode-wow-api**: `master` @ `a2e82582ac3f38c096ecc192fe701c3ba901d95d`
66
- **WoWUI**: `vanilla` @ `b6262ddd722e41b0757e7c6ae2e2a83563044152`
77

8-
Generated on: 2025-12-08 16:37:50
8+
Generated on: 2025-12-10 15:12:04

WoW-API/FrameXML/Blizzard_Deprecated/Deprecated_11_1_7.lua

Lines changed: 0 additions & 11 deletions
This file was deleted.

WoW-API/FrameXML/Blizzard_Deprecated/Deprecated_SpellBook.lua.lua

Lines changed: 0 additions & 21 deletions
This file was deleted.

WoW-API/FrameXML/Blizzard_Deprecated/Deprecated_UnitScript.lua

Lines changed: 0 additions & 7 deletions
This file was deleted.

WoW-API/FrameXML/Blizzard_FrameXML/AuraUtil.lua

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
11
---@meta _
22

3-
AuraUtil = {}
4-
5-
---[FrameXML](https://github.com/Gethe/wow-ui-source/blob/live/Interface/FrameXML/AuraUtil.lua#L32)
6-
-- Finds the first aura that matches the name
7-
---@param auraName string
8-
---@param unit string
9-
---@param filter? string
10-
---@return string name
11-
---@return number icon
12-
---@return number count
13-
---@return string? dispelType
14-
---@return number duration
15-
---@return number expirationTime
16-
---@return string source
17-
---@return boolean isStealable
18-
---@return boolean nameplateShowPersonal
19-
---@return number spellId
20-
---@return boolean canApplyAura
21-
---@return boolean isBossDebuff
22-
---@return boolean castByPlayer
23-
---@return boolean nameplateShowAll
24-
---@return number timeMod
25-
---@return ...
26-
function AuraUtil.FindAuraByName(auraName, unit, filter) end
27-
283
---[FrameXML](https://github.com/Gethe/wow-ui-source/blob/live/Interface/FrameXML/AuraUtil.lua#L51)
294
--- Iterates over a filtered list of auras
305
---@param unit string

WoW-API/FrameXML/Blizzard_FrameXML/ItemUtil.lua

Lines changed: 0 additions & 26 deletions
This file was deleted.

WoW-API/FrameXML/Blizzard_FrameXML/ReportFrame.lua

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,3 @@
44
---@class ReportInfoMixin
55
ReportInfoMixin = {}
66

7-
function ReportInfoMixin:Clear() end
8-
9-
---@param mailIndex number
10-
function ReportInfoMixin:SetMailIndex(mailIndex) end
11-
12-
---@param clubFinderGUID string
13-
function ReportInfoMixin:SetClubFinderGUID(clubFinderGUID) end
14-
15-
---@param reportTarget string
16-
function ReportInfoMixin:SetReportTarget(reportTarget) end
17-
18-
---@param comment string
19-
function ReportInfoMixin:SetComment(comment) end
20-
21-
---@param groupFinderSearchResultID number
22-
function ReportInfoMixin:SetGroupFinderSearchResultID(groupFinderSearchResultID) end
23-
24-
---@param groupFinderApplicantID number
25-
function ReportInfoMixin:SetGroupFinderApplicantID(groupFinderApplicantID) end
26-
27-
---@param reportType Enum.ReportType
28-
function ReportInfoMixin:SetReportType(reportType) end
29-
30-
---@param majorCategory Enum.ReportMajorCategory
31-
function ReportInfoMixin:SetReportMajorCategory(majorCategory) end
32-
33-
---@param minorCategoryFlags Enum.ReportMinorCategory
34-
function ReportInfoMixin:SetMinorCategoryFlags(minorCategoryFlags) end
35-
36-
---@param petGUID string
37-
function ReportInfoMixin:SetPetGUID(petGUID) end
38-
39-
---@param reportType? Enum.ReportType
40-
---@param majorCategory Enum.ReportMajorCategory
41-
---@param minorCategoryFlags Enum.ReportMinorCategory
42-
function ReportInfoMixin:SetBasicReportInfo(reportType, majorCategory, minorCategoryFlags) end
Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,7 @@
11
---@meta _
22

3-
---[Documentation](https://warcraft.wiki.gg/wiki/TransmogLocationMixin)
4-
---@class TransmogPendingInfoMixin
5-
TransmogPendingInfoMixin = {}
6-
7-
--- See [CreateAndInitFromMixin](https://www.townlong-yak.com/framexml/go/CreateAndInitFromMixin)
8-
---@param pendingType Enum.TransmogPendingType
9-
---@param transmogID number
10-
---@param category number
11-
function TransmogPendingInfoMixin:Init(pendingType, transmogID, category) end
12-
133
---@class TransmogLocationType
144
---@field slotID? InventorySlots
155
---@field type? Enum.TransmogType
166
---@field modification? Enum.TransmogModification
177

18-
---[Documentation](https://warcraft.wiki.gg/wiki/TransmogLocationMixin)
19-
---@class TransmogLocationMixin : TransmogLocationType
20-
TransmogLocationMixin = {}
21-
22-
---@param slotID number
23-
---@param transmogType Enum.TransmogType
24-
---@param modification Enum.TransmogModification
25-
function TransmogLocationMixin:Set(slotID, transmogType, modification) end
26-
27-
---@return boolean
28-
function TransmogLocationMixin:IsAppearance() end
29-
30-
---@return boolean
31-
function TransmogLocationMixin:IsIllusion() end
32-
33-
---@return number slotID
34-
function TransmogLocationMixin:GetSlotID() end
35-
36-
---@return string slotName
37-
function TransmogLocationMixin:GetSlotName() end
38-
39-
---@return boolean
40-
function TransmogLocationMixin:IsEitherHand() end
41-
42-
---@return boolean
43-
function TransmogLocationMixin:IsMainHand() end
44-
45-
---@return boolean
46-
function TransmogLocationMixin:IsOffHand() end
47-
48-
---@param transmogLocation TransmogLocationMixin
49-
---@return boolean
50-
function TransmogLocationMixin:IsEqual(transmogLocation) end
51-
52-
---@return number armorCategoryID
53-
function TransmogLocationMixin:GetArmorCategoryID() end
54-
55-
---@return number lookupKey
56-
function TransmogLocationMixin:GetLookupKey() end
57-
58-
---@return boolean
59-
function TransmogLocationMixin:IsSecondary() end

0 commit comments

Comments
 (0)