WoW:API GetMapContinents

From AddOn Studio
Revision as of 11:04, 21 November 2004 by WoWWiki>Meog
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetMapContinents -Documentation by Meog-

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.

Template:WoW API