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,9 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param slot 6
---@param 1
---@param 2
---@param 3
---@param 4
---@param 5
---@param 6
---@return number start
---@return number duration
---@return boolean runeReady
---@param slot runeSlot
---@return number start
---@return number duration
---@return boolean runeReady
---Returns cooldown information about one of the player's rune resources. Note the placement of runes 3-4 (normally Unholy) and 5-6 (normally Frost) are reversed in the default UI. Also note the behavior of returned values differs slightly from most other GetXYZCooldown-style functions.
function GetRuneCooldown(slot, 1, 2, 3, 4, 5, 6) end
function GetRuneCooldown(slot) end