mirror of https://github.com/MingweiSamuel/Riven
adding champion docs
parent
f46bee1fad
commit
e62a41983a
|
@ -1,159 +1,163 @@
|
||||||
|
|
||||||
// This file is automatically generated.
|
// This file is automatically generated.
|
||||||
// Do not directly edit.
|
// Do not directly edit.
|
||||||
// Generated on 2019-10-22T21:22:55.963Z
|
// Generated on 2019-10-22T21:42:10.101Z
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use num_derive;
|
use num_derive;
|
||||||
|
|
||||||
|
/// League of Legend's champions.
|
||||||
|
///
|
||||||
|
/// The documentation of each variant specifies:<br>
|
||||||
|
/// NAME (`IDENTIFIER`, ID).
|
||||||
#[derive(fmt::Debug, Copy, Clone)]
|
#[derive(fmt::Debug, Copy, Clone)]
|
||||||
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||||
pub enum Champion {
|
pub enum Champion {
|
||||||
Aatrox = 266,
|
/** Aatrox (`Aatrox`, 266). */ Aatrox = 266,
|
||||||
Ahri = 103,
|
/** Ahri (`Ahri`, 103). */ Ahri = 103,
|
||||||
Akali = 84,
|
/** Akali (`Akali`, 84). */ Akali = 84,
|
||||||
Alistar = 12,
|
/** Alistar (`Alistar`, 12). */ Alistar = 12,
|
||||||
Amumu = 32,
|
/** Amumu (`Amumu`, 32). */ Amumu = 32,
|
||||||
Anivia = 34,
|
/** Anivia (`Anivia`, 34). */ Anivia = 34,
|
||||||
Annie = 1,
|
/** Annie (`Annie`, 1). */ Annie = 1,
|
||||||
Ashe = 22,
|
/** Ashe (`Ashe`, 22). */ Ashe = 22,
|
||||||
AurelionSol = 136,
|
/** Aurelion Sol (`AurelionSol`, 136). */ AurelionSol = 136,
|
||||||
Azir = 268,
|
/** Azir (`Azir`, 268). */ Azir = 268,
|
||||||
Bard = 432,
|
/** Bard (`Bard`, 432). */ Bard = 432,
|
||||||
Blitzcrank = 53,
|
/** Blitzcrank (`Blitzcrank`, 53). */ Blitzcrank = 53,
|
||||||
Brand = 63,
|
/** Brand (`Brand`, 63). */ Brand = 63,
|
||||||
Braum = 201,
|
/** Braum (`Braum`, 201). */ Braum = 201,
|
||||||
Caitlyn = 51,
|
/** Caitlyn (`Caitlyn`, 51). */ Caitlyn = 51,
|
||||||
Camille = 164,
|
/** Camille (`Camille`, 164). */ Camille = 164,
|
||||||
Cassiopeia = 69,
|
/** Cassiopeia (`Cassiopeia`, 69). */ Cassiopeia = 69,
|
||||||
ChoGath = 31,
|
/** Cho'Gath (`Chogath`, 31). */ ChoGath = 31,
|
||||||
Corki = 42,
|
/** Corki (`Corki`, 42). */ Corki = 42,
|
||||||
Darius = 122,
|
/** Darius (`Darius`, 122). */ Darius = 122,
|
||||||
Diana = 131,
|
/** Diana (`Diana`, 131). */ Diana = 131,
|
||||||
DrMundo = 36,
|
/** Dr. Mundo (`DrMundo`, 36). */ DrMundo = 36,
|
||||||
Draven = 119,
|
/** Draven (`Draven`, 119). */ Draven = 119,
|
||||||
Ekko = 245,
|
/** Ekko (`Ekko`, 245). */ Ekko = 245,
|
||||||
Elise = 60,
|
/** Elise (`Elise`, 60). */ Elise = 60,
|
||||||
Evelynn = 28,
|
/** Evelynn (`Evelynn`, 28). */ Evelynn = 28,
|
||||||
Ezreal = 81,
|
/** Ezreal (`Ezreal`, 81). */ Ezreal = 81,
|
||||||
Fiddlesticks = 9,
|
/** Fiddlesticks (`FiddleSticks`, 9). */ Fiddlesticks = 9,
|
||||||
Fiora = 114,
|
/** Fiora (`Fiora`, 114). */ Fiora = 114,
|
||||||
Fizz = 105,
|
/** Fizz (`Fizz`, 105). */ Fizz = 105,
|
||||||
Galio = 3,
|
/** Galio (`Galio`, 3). */ Galio = 3,
|
||||||
Gangplank = 41,
|
/** Gangplank (`Gangplank`, 41). */ Gangplank = 41,
|
||||||
Garen = 86,
|
/** Garen (`Garen`, 86). */ Garen = 86,
|
||||||
Gnar = 150,
|
/** Gnar (`Gnar`, 150). */ Gnar = 150,
|
||||||
Gragas = 79,
|
/** Gragas (`Gragas`, 79). */ Gragas = 79,
|
||||||
Graves = 104,
|
/** Graves (`Graves`, 104). */ Graves = 104,
|
||||||
Hecarim = 120,
|
/** Hecarim (`Hecarim`, 120). */ Hecarim = 120,
|
||||||
Heimerdinger = 74,
|
/** Heimerdinger (`Heimerdinger`, 74). */ Heimerdinger = 74,
|
||||||
Illaoi = 420,
|
/** Illaoi (`Illaoi`, 420). */ Illaoi = 420,
|
||||||
Irelia = 39,
|
/** Irelia (`Irelia`, 39). */ Irelia = 39,
|
||||||
Ivern = 427,
|
/** Ivern (`Ivern`, 427). */ Ivern = 427,
|
||||||
Janna = 40,
|
/** Janna (`Janna`, 40). */ Janna = 40,
|
||||||
JarvanIV = 59,
|
/** Jarvan IV (`JarvanIV`, 59). */ JarvanIV = 59,
|
||||||
Jax = 24,
|
/** Jax (`Jax`, 24). */ Jax = 24,
|
||||||
Jayce = 126,
|
/** Jayce (`Jayce`, 126). */ Jayce = 126,
|
||||||
Jhin = 202,
|
/** Jhin (`Jhin`, 202). */ Jhin = 202,
|
||||||
Jinx = 222,
|
/** Jinx (`Jinx`, 222). */ Jinx = 222,
|
||||||
KaiSa = 145,
|
/** Kai'Sa (`Kaisa`, 145). */ KaiSa = 145,
|
||||||
Kalista = 429,
|
/** Kalista (`Kalista`, 429). */ Kalista = 429,
|
||||||
Karma = 43,
|
/** Karma (`Karma`, 43). */ Karma = 43,
|
||||||
Karthus = 30,
|
/** Karthus (`Karthus`, 30). */ Karthus = 30,
|
||||||
Kassadin = 38,
|
/** Kassadin (`Kassadin`, 38). */ Kassadin = 38,
|
||||||
Katarina = 55,
|
/** Katarina (`Katarina`, 55). */ Katarina = 55,
|
||||||
Kayle = 10,
|
/** Kayle (`Kayle`, 10). */ Kayle = 10,
|
||||||
Kayn = 141,
|
/** Kayn (`Kayn`, 141). */ Kayn = 141,
|
||||||
Kennen = 85,
|
/** Kennen (`Kennen`, 85). */ Kennen = 85,
|
||||||
KhaZix = 121,
|
/** Kha'Zix (`Khazix`, 121). */ KhaZix = 121,
|
||||||
Kindred = 203,
|
/** Kindred (`Kindred`, 203). */ Kindred = 203,
|
||||||
Kled = 240,
|
/** Kled (`Kled`, 240). */ Kled = 240,
|
||||||
KogMaw = 96,
|
/** Kog'Maw (`KogMaw`, 96). */ KogMaw = 96,
|
||||||
LeBlanc = 7,
|
/** LeBlanc (`Leblanc`, 7). */ LeBlanc = 7,
|
||||||
LeeSin = 64,
|
/** Lee Sin (`LeeSin`, 64). */ LeeSin = 64,
|
||||||
Leona = 89,
|
/** Leona (`Leona`, 89). */ Leona = 89,
|
||||||
Lissandra = 127,
|
/** Lissandra (`Lissandra`, 127). */ Lissandra = 127,
|
||||||
Lucian = 236,
|
/** Lucian (`Lucian`, 236). */ Lucian = 236,
|
||||||
Lulu = 117,
|
/** Lulu (`Lulu`, 117). */ Lulu = 117,
|
||||||
Lux = 99,
|
/** Lux (`Lux`, 99). */ Lux = 99,
|
||||||
Malphite = 54,
|
/** Malphite (`Malphite`, 54). */ Malphite = 54,
|
||||||
Malzahar = 90,
|
/** Malzahar (`Malzahar`, 90). */ Malzahar = 90,
|
||||||
Maokai = 57,
|
/** Maokai (`Maokai`, 57). */ Maokai = 57,
|
||||||
MasterYi = 11,
|
/** Master Yi (`MasterYi`, 11). */ MasterYi = 11,
|
||||||
MissFortune = 21,
|
/** Miss Fortune (`MissFortune`, 21). */ MissFortune = 21,
|
||||||
Mordekaiser = 82,
|
/** Mordekaiser (`Mordekaiser`, 82). */ Mordekaiser = 82,
|
||||||
Morgana = 25,
|
/** Morgana (`Morgana`, 25). */ Morgana = 25,
|
||||||
Nami = 267,
|
/** Nami (`Nami`, 267). */ Nami = 267,
|
||||||
Nasus = 75,
|
/** Nasus (`Nasus`, 75). */ Nasus = 75,
|
||||||
Nautilus = 111,
|
/** Nautilus (`Nautilus`, 111). */ Nautilus = 111,
|
||||||
Neeko = 518,
|
/** Neeko (`Neeko`, 518). */ Neeko = 518,
|
||||||
Nidalee = 76,
|
/** Nidalee (`Nidalee`, 76). */ Nidalee = 76,
|
||||||
Nocturne = 56,
|
/** Nocturne (`Nocturne`, 56). */ Nocturne = 56,
|
||||||
NunuWillump = 20,
|
/** Nunu & Willump (`Nunu`, 20). */ NunuWillump = 20,
|
||||||
Olaf = 2,
|
/** Olaf (`Olaf`, 2). */ Olaf = 2,
|
||||||
Orianna = 61,
|
/** Orianna (`Orianna`, 61). */ Orianna = 61,
|
||||||
Ornn = 516,
|
/** Ornn (`Ornn`, 516). */ Ornn = 516,
|
||||||
Pantheon = 80,
|
/** Pantheon (`Pantheon`, 80). */ Pantheon = 80,
|
||||||
Poppy = 78,
|
/** Poppy (`Poppy`, 78). */ Poppy = 78,
|
||||||
Pyke = 555,
|
/** Pyke (`Pyke`, 555). */ Pyke = 555,
|
||||||
Qiyana = 246,
|
/** Qiyana (`Qiyana`, 246). */ Qiyana = 246,
|
||||||
Quinn = 133,
|
/** Quinn (`Quinn`, 133). */ Quinn = 133,
|
||||||
Rakan = 497,
|
/** Rakan (`Rakan`, 497). */ Rakan = 497,
|
||||||
Rammus = 33,
|
/** Rammus (`Rammus`, 33). */ Rammus = 33,
|
||||||
RekSai = 421,
|
/** Rek'Sai (`RekSai`, 421). */ RekSai = 421,
|
||||||
Renekton = 58,
|
/** Renekton (`Renekton`, 58). */ Renekton = 58,
|
||||||
Rengar = 107,
|
/** Rengar (`Rengar`, 107). */ Rengar = 107,
|
||||||
Riven = 92,
|
/** Riven (`Riven`, 92). */ Riven = 92,
|
||||||
Rumble = 68,
|
/** Rumble (`Rumble`, 68). */ Rumble = 68,
|
||||||
Ryze = 13,
|
/** Ryze (`Ryze`, 13). */ Ryze = 13,
|
||||||
Sejuani = 113,
|
/** Sejuani (`Sejuani`, 113). */ Sejuani = 113,
|
||||||
Shaco = 35,
|
/** Shaco (`Shaco`, 35). */ Shaco = 35,
|
||||||
Shen = 98,
|
/** Shen (`Shen`, 98). */ Shen = 98,
|
||||||
Shyvana = 102,
|
/** Shyvana (`Shyvana`, 102). */ Shyvana = 102,
|
||||||
Singed = 27,
|
/** Singed (`Singed`, 27). */ Singed = 27,
|
||||||
Sion = 14,
|
/** Sion (`Sion`, 14). */ Sion = 14,
|
||||||
Sivir = 15,
|
/** Sivir (`Sivir`, 15). */ Sivir = 15,
|
||||||
Skarner = 72,
|
/** Skarner (`Skarner`, 72). */ Skarner = 72,
|
||||||
Sona = 37,
|
/** Sona (`Sona`, 37). */ Sona = 37,
|
||||||
Soraka = 16,
|
/** Soraka (`Soraka`, 16). */ Soraka = 16,
|
||||||
Swain = 50,
|
/** Swain (`Swain`, 50). */ Swain = 50,
|
||||||
Sylas = 517,
|
/** Sylas (`Sylas`, 517). */ Sylas = 517,
|
||||||
Syndra = 134,
|
/** Syndra (`Syndra`, 134). */ Syndra = 134,
|
||||||
TahmKench = 223,
|
/** Tahm Kench (`TahmKench`, 223). */ TahmKench = 223,
|
||||||
Taliyah = 163,
|
/** Taliyah (`Taliyah`, 163). */ Taliyah = 163,
|
||||||
Talon = 91,
|
/** Talon (`Talon`, 91). */ Talon = 91,
|
||||||
Taric = 44,
|
/** Taric (`Taric`, 44). */ Taric = 44,
|
||||||
Teemo = 17,
|
/** Teemo (`Teemo`, 17). */ Teemo = 17,
|
||||||
Thresh = 412,
|
/** Thresh (`Thresh`, 412). */ Thresh = 412,
|
||||||
Tristana = 18,
|
/** Tristana (`Tristana`, 18). */ Tristana = 18,
|
||||||
Trundle = 48,
|
/** Trundle (`Trundle`, 48). */ Trundle = 48,
|
||||||
Tryndamere = 23,
|
/** Tryndamere (`Tryndamere`, 23). */ Tryndamere = 23,
|
||||||
TwistedFate = 4,
|
/** Twisted Fate (`TwistedFate`, 4). */ TwistedFate = 4,
|
||||||
Twitch = 29,
|
/** Twitch (`Twitch`, 29). */ Twitch = 29,
|
||||||
Udyr = 77,
|
/** Udyr (`Udyr`, 77). */ Udyr = 77,
|
||||||
Urgot = 6,
|
/** Urgot (`Urgot`, 6). */ Urgot = 6,
|
||||||
Varus = 110,
|
/** Varus (`Varus`, 110). */ Varus = 110,
|
||||||
Vayne = 67,
|
/** Vayne (`Vayne`, 67). */ Vayne = 67,
|
||||||
Veigar = 45,
|
/** Veigar (`Veigar`, 45). */ Veigar = 45,
|
||||||
VelKoz = 161,
|
/** Vel'Koz (`Velkoz`, 161). */ VelKoz = 161,
|
||||||
Vi = 254,
|
/** Vi (`Vi`, 254). */ Vi = 254,
|
||||||
Viktor = 112,
|
/** Viktor (`Viktor`, 112). */ Viktor = 112,
|
||||||
Vladimir = 8,
|
/** Vladimir (`Vladimir`, 8). */ Vladimir = 8,
|
||||||
Volibear = 106,
|
/** Volibear (`Volibear`, 106). */ Volibear = 106,
|
||||||
Warwick = 19,
|
/** Warwick (`Warwick`, 19). */ Warwick = 19,
|
||||||
Wukong = 62,
|
/** Wukong (`MonkeyKing`, 62). */ Wukong = 62,
|
||||||
Xayah = 498,
|
/** Xayah (`Xayah`, 498). */ Xayah = 498,
|
||||||
Xerath = 101,
|
/** Xerath (`Xerath`, 101). */ Xerath = 101,
|
||||||
XinZhao = 5,
|
/** Xin Zhao (`XinZhao`, 5). */ XinZhao = 5,
|
||||||
Yasuo = 157,
|
/** Yasuo (`Yasuo`, 157). */ Yasuo = 157,
|
||||||
Yorick = 83,
|
/** Yorick (`Yorick`, 83). */ Yorick = 83,
|
||||||
Yuumi = 350,
|
/** Yuumi (`Yuumi`, 350). */ Yuumi = 350,
|
||||||
Zac = 154,
|
/** Zac (`Zac`, 154). */ Zac = 154,
|
||||||
Zed = 238,
|
/** Zed (`Zed`, 238). */ Zed = 238,
|
||||||
Ziggs = 115,
|
/** Ziggs (`Ziggs`, 115). */ Ziggs = 115,
|
||||||
Zilean = 26,
|
/** Zilean (`Zilean`, 26). */ Zilean = 26,
|
||||||
Zoe = 142,
|
/** Zoe (`Zoe`, 142). */ Zoe = 142,
|
||||||
Zyra = 143,
|
/** Zyra (`Zyra`, 143). */ Zyra = 143,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Champion {
|
impl Champion {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
// This file is automatically generated.
|
// This file is automatically generated.
|
||||||
// Do not directly edit.
|
// Do not directly edit.
|
||||||
// Generated on 2019-10-22T21:22:55.948Z
|
// Generated on 2019-10-22T21:42:10.216Z
|
||||||
|
|
||||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||||
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
|
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
// This file is automatically generated.
|
// This file is automatically generated.
|
||||||
// Do not directly edit.
|
// Do not directly edit.
|
||||||
// Generated on 2019-10-22T21:22:55.955Z
|
// Generated on 2019-10-22T21:42:10.207Z
|
||||||
|
|
||||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||||
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
|
// Version 0c74167e0eaaeb6de1c7e8219fecaabcf8386d1f
|
||||||
|
|
|
@ -19,13 +19,19 @@
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use num_derive;
|
use num_derive;
|
||||||
|
|
||||||
|
/// League of Legend's champions.
|
||||||
|
///
|
||||||
|
/// The documentation of each variant specifies:<br>
|
||||||
|
/// NAME (`IDENTIFIER`, ID).
|
||||||
#[derive(fmt::Debug, Copy, Clone)]
|
#[derive(fmt::Debug, Copy, Clone)]
|
||||||
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||||
pub enum Champion {
|
pub enum Champion {
|
||||||
{{
|
{{
|
||||||
for (let { id, name } of champions) {
|
for (let { id, alias, name } of champions) {
|
||||||
|
const comment = `${name.padEnd(14)} (\`${alias}\`, ${id}).`.padEnd(36);
|
||||||
|
const ename = enumName(name).padEnd(12);
|
||||||
}}
|
}}
|
||||||
{{= enumName(name).padEnd(12) }} = {{= id }},
|
/** {{= comment }} */ {{= ename }} = {{= id }},
|
||||||
{{
|
{{
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue