You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
448 B
19 lines
448 B
local WIT, core = ...
|
|
|
|
local LocationHelper = {}
|
|
|
|
core.LocationHelper = LocationHelper
|
|
|
|
-- areaId - id from namespace core.Locations
|
|
function LocationHelper.GetAreaName(areaId)
|
|
return C_Map.GetAreaInfo(areaId)
|
|
end
|
|
|
|
-- mapId - C_Map.GetBestMapForUnit("player")
|
|
function LocationHelper.GetMapName(mapId)
|
|
return C_Map.GetMapInfo(mapId).name
|
|
end
|
|
|
|
function LocationHelper.GetPlayerCurrentMapId()
|
|
return C_Map.GetBestMapForUnit("player")
|
|
end
|
|
|