Refactor API functions to enhance parameter aliasing and improve documentation clarity

This commit is contained in:
2025-05-18 14:16:07 +02:00
parent bbb138c938
commit b595bc5573
11 changed files with 111 additions and 99 deletions

View File

@@ -1,16 +1,18 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param continentIndex 7
---@param -1
---@param 0
---@param 1
---@param 2
---@param 3
---@param 4
---@param 5
---@param 6
---@param 7
---@param zoneIndex number
---@alias continentIndex
---| -1 - Cosmic map
---| 0 - Entire Azeroth map
---| 1 - Kalimdor
---| 2 - Eastern Kingdoms
---| 3 - Outland
---| 4 - Northrend
---| 5 - The Maelstrom
---| 6 - Pandaria
---| 7 - Draenor
---@param continentIndex continentIndex
---@param zoneIndex number
---Sets the world map to show a specific zone or continent
function SetMapZoom(continentIndex, -1, 0, 1, 2, 3, 4, 5, 6, 7, zoneIndex) end
function SetMapZoom(continentIndex, zoneIndex) end