WoW:API GetMapContinents
Returns the continent names
GetMapContinents();
- Arguments
- none
- Returns
- String continent_1, String continent_2, ..., String continent_n
- continent_i
- string, holds one continent name (i is equal to the value API_GetCurrentMapContinent returns)
- Example
ContinentNames = {};
function LoadContinents(...)
for i=1, arg.n, 1 do
ContinentNames[i] = arg[i];
end
end
LoadContinents(GetMapContinents());
- Result
The array ContinentNames holds all available continent names: ContinentNames[1] == "Kalimdor" ContinentNames[2] == "Eastern Kingdoms"
- Description
- Returns the continent names. At release this will be only two: "Kalimdor" and "Eastern Kingdoms", but when using this function keep in mind, that there maybe more sometime after release.