WoW:API GetMapContinents: Difference between revisions
Jump to navigation
Jump to search
GetMapContinents -Documentation by Meog-
mNo edit summary |
No edit summary |
||
| Line 43: | Line 43: | ||
: 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, and that they may get added before the existing ones. | : 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, and that they may get added before the existing ones. | ||
---- | ---- | ||
{{ | {{WoW API}} | ||
Revision as of 05:21, 4 January 2006
Returns a list of continent names
continent_1, continent_2, ..., continent_N = GetMapContinents();
- Arguments
- none
- Returns
- continent_1, continent_2, ..., continent_N
- continent_i
- String - The name of the i'th continent, (i corresponds to the value GetCurrentMapContinent() returns)
- Example
continentNames = {};
function LoadContinents(...)
for i=1, arg.n, 1 do
continentNames[i] = arg[i];
end
end
LoadContinents(GetMapContinents());
Note that this can also be achieved with
continentNames = { GetMapContinents() } ;
- Result
The array ContinentNames holds all available continent names: ContinentNames[1] == "Kalimdor" ContinentNames[2] == "Eastern Kingdoms"
- Details
- 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, and that they may get added before the existing ones.