Added DH class index
(Updated for new MoP return values) |
(Added DH class index) |
||
| Line 8: | Line 8: | ||
=== Arguments === | === Arguments === | ||
:;unit: String - the [[unitId]] to query, e.g. "player" | :;unit | ||
:: String - the [[unitId]] to query, e.g. "player" | |||
=== Returns === | === Returns === | ||
| Line 14: | Line 15: | ||
:localizedClass, englishClass, classIndex | :localizedClass, englishClass, classIndex | ||
:;localizedclass : The localized class of the specified unit as a string. | :;localizedclass | ||
:: The localized class of the specified unit as a string. e.g. "Mage", "Warrior", "Guerrier", etc. | |||
:;englishclass : The fully capitalized english class name with no spaces, e.g. "MAGE", "WARRIOR", "DEATHKNIGHT", etc. | :;englishclass | ||
:: The fully capitalized english class name with no spaces, e.g. "MAGE", "WARRIOR", "DEATHKNIGHT", etc. | |||
:;classIndex : the number index corresponding to the particular class that is returned. Number mapping is as follows: | :;classIndex | ||
:: the number index corresponding to the particular class that is returned. Number mapping is as follows: | |||
:None = 0 | |||
::Warrior = 1 | ::Warrior = 1 | ||
::Paladin = 2 | ::Paladin = 2 | ||
| Line 31: | Line 35: | ||
::Warlock = 9 | ::Warlock = 9 | ||
::Monk = 10 | ::Monk = 10 | ||
::Druid = 11 | ::Druid = 11 | ||
::Demon Hunter = 12 | |||
== Example == | == Example == | ||