m
Move page script moved page API GetMapContinents to WoW:API GetMapContinents without leaving a redirect
No edit summary |
m (Move page script moved page API GetMapContinents to WoW:API GetMapContinents without leaving a redirect) |
||
| (10 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns a list of continent names. | |||
continent_1, continent_2, ..., continent_N = GetMapContinents(); | |||
Returns the continent | ==Parameters== | ||
===Returns=== | |||
:continent_1, continent_2, ..., continent_N | |||
:;continent_''i'' : String - The name of the ''<nowiki>i'</nowiki>''th continent, (i corresponds to the value [[API GetCurrentMapContinent|GetCurrentMapContinent()]] returns) | |||
GetMapContinents(); | ==Example== | ||
local continentNames, key, val = { GetMapContinents() } ; | |||
for key, val in pairs(continentNames) do | |||
DEFAULT_CHAT_FRAME:AddMessage("#" .. key .. ": " .. val); | |||
: | |||
: | |||
end | end | ||
===Result=== | |||
A list of the continent names is displayed in the default chat frame. | |||
: | #1: Kalimdor | ||
<nowiki>#</nowiki>2: Eastern Kingdoms | |||
<nowiki>#3: Outland | |||
#4: Northrend | |||
#</nowiki>5: The Maelstrom | |||
<nowiki>#6: Pandaria | |||
#</nowiki>7: Draenor | |||
==Details== | |||
Note that as more expansions are releases, the output of this function may change. | |||