Refactor API functions to improve parameter aliasing and enhance documentation clarity

This commit is contained in:
2025-05-18 15:12:37 +02:00
parent cbed6108ef
commit b5cba11bd3
10 changed files with 95 additions and 99 deletions

View File

@@ -1,15 +1,12 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param socket number
---@param talentGroup nil
---@param 1
---@param 2
---@param nil
---@return boolean enabled
---@return number glyphType
---@return number glyphTooltipIndex
---@return number glyphSpell
---@return string icon
---@param socket number
---@param talentGroup talentGroup
---@return boolean enabled
---@return number glyphType
---@return number glyphTooltipIndex
---@return number glyphSpell
---@return string icon
---Returns information about a glyph socket and its contents. The spell ID referenced in the third return glyphSpell refers to the spell used to put the glyph in the socket -- not the Inscription spell that creates a glyph item, but the spell associated with that item's "Use:" effect.
function GetGlyphSocketInfo(socket, talentGroup, 1, 2, nil) end
function GetGlyphSocketInfo(socket, talentGroup) end