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,13 +1,15 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param index 1
---@param 0
---@param 1
---@return string teamName
---@return number teamRating
---@return number newTeamRating
---@return number teamMMR
---@return number numPlayers
---@alias battlegroundGroup
---| 0 - Green Team/Horde
---| 1 - Gold Team/Alliance
---@param index battlegroundGroup
---@return string teamName
---@return number teamRating
---@return number newTeamRating
---@return number teamMMR
---@return number numPlayers
---Returns info about teams and their rating and MMR in a rated arena match. Usable following the UPDATE_BATTLEFIELD_SCORE event.
function GetBattlefieldTeamInfo(index, 0, 1) end
function GetBattlefieldTeamInfo(index) end