From bd2a342dc4e7757e5fa57cf34dd6f35b8dca5d4f Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 17 May 2025 18:48:54 +0200 Subject: [PATCH] Add C_Map module for world map and navigation functions --- C_Map.lua | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 C_Map.lua diff --git a/C_Map.lua b/C_Map.lua new file mode 100644 index 0000000..24b130c --- /dev/null +++ b/C_Map.lua @@ -0,0 +1,135 @@ +---@meta +--- +--- C_Map is a namespace for functions related to the world map and navigation. +--- +--- @class C_Map +C_Map = { + --- @return number + --- Returns the best map for the player's current location. + GetBestMapForUnit = function() end, + + --- @param uiMapID number + --- @return table + --- Returns information about a map. + GetMapInfo = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map art ID for a map. + GetMapArtID = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map art background ID for a map. + GetMapArtBackgroundID = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map art layers for a map. + GetMapArtLayers = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map art style for a map. + GetMapArtStyle = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map art tiles for a map. + GetMapArtTiles = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map children for a map. + GetMapChildrenInfo = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map flags for a map. + GetMapFlags = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map group ID for a map. + GetMapGroupID = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map link info for a map. + GetMapLinkInfo = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map parent info for a map. + GetMapParentInfo = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map rect for a map. + GetMapRect = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map type for a map. + GetMapType = function(uiMapID) end, + + --- @param uiMapID number + --- @return table + --- Returns the map zones for a map. + GetMapZones = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is valid. + IsMapValidForNavigation = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a dungeon map. + IsDungeonMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a raid map. + IsRaidMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a battleground map. + IsBattlegroundMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is an arena map. + IsArenaMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a world map. + IsWorldMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a continent map. + IsContinentMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a zone map. + IsZoneMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a micro dungeon map. + IsMicroDungeonMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is an orphan map. + IsOrphanMap = function(uiMapID) end, + + --- @param uiMapID number + --- @return boolean + --- Returns whether a map is a cosmic map. + IsCosmicMap = function(uiMapID) end, +}