Refactor API functions to improve parameter aliasing and enhance documentation clarity

This commit is contained in:
2025-05-18 15:03:21 +02:00
parent b595bc5573
commit cbed6108ef
22 changed files with 165 additions and 170 deletions

View File

@@ -1,12 +1,14 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param tabIndex number
---@param talentIndex number
---@param isPet boolean
---@param talentGroup nil
---@param 1
---@param 2
---@param nil
---@alias talentGroup
---| 1 - Primary Talents
---| 2 - Secondary Talents
---| nil - Currently active talents
---@param tabIndex number
---@param talentIndex number
---@param isPet boolean
---@param talentGroup talentGroup
---Learns a talent, spending one talent point
function LearnTalent(tabIndex, talentIndex, isPet, talentGroup, 1, 2, nil) end
function LearnTalent(tabIndex, talentIndex, isPet, talentGroup) end