This commit is contained in:
djazouli 2022-08-12 15:08:45 +01:00 committed by Mingwei Samuel
parent 650380cdf9
commit 2f4aae6635
4 changed files with 9 additions and 3 deletions

View file

@ -100,6 +100,7 @@ newtype_enum! {
/// `NAUTILUS` | "Nautilus" | "Nautilus" | 111 /// `NAUTILUS` | "Nautilus" | "Nautilus" | 111
/// `NEEKO` | "Neeko" | "Neeko" | 518 /// `NEEKO` | "Neeko" | "Neeko" | 518
/// `NIDALEE` | "Nidalee" | "Nidalee" | 76 /// `NIDALEE` | "Nidalee" | "Nidalee" | 76
/// `NILAH` | "Nilah" | "Nilah" | 895
/// `NOCTURNE` | "Nocturne" | "Nocturne" | 56 /// `NOCTURNE` | "Nocturne" | "Nocturne" | 56
/// `NUNU_WILLUMP` | "Nunu & Willump" | "Nunu" | 20 /// `NUNU_WILLUMP` | "Nunu & Willump" | "Nunu" | 20
/// `OLAF` | "Olaf" | "Olaf" | 2 /// `OLAF` | "Olaf" | "Olaf" | 2
@ -348,6 +349,8 @@ newtype_enum! {
NEEKO = 518, NEEKO = 518,
/// `76`. /// `76`.
NIDALEE = 76, NIDALEE = 76,
/// `895`.
NILAH = 895,
/// `56`. /// `56`.
NOCTURNE = 56, NOCTURNE = 56,
/// `20`. /// `20`.
@ -591,6 +594,7 @@ impl Champion {
Self::NAUTILUS => Some("Nautilus"), Self::NAUTILUS => Some("Nautilus"),
Self::NEEKO => Some("Neeko"), Self::NEEKO => Some("Neeko"),
Self::NIDALEE => Some("Nidalee"), Self::NIDALEE => Some("Nidalee"),
Self::NILAH => Some("Nilah"),
Self::NOCTURNE => Some("Nocturne"), Self::NOCTURNE => Some("Nocturne"),
Self::NUNU_WILLUMP => Some("Nunu & Willump"), Self::NUNU_WILLUMP => Some("Nunu & Willump"),
Self::OLAF => Some("Olaf"), Self::OLAF => Some("Olaf"),
@ -775,6 +779,7 @@ impl Champion {
Self::NAUTILUS => Some("Nautilus"), Self::NAUTILUS => Some("Nautilus"),
Self::NEEKO => Some("Neeko"), Self::NEEKO => Some("Neeko"),
Self::NIDALEE => Some("Nidalee"), Self::NIDALEE => Some("Nidalee"),
Self::NILAH => Some("Nilah"),
Self::NOCTURNE => Some("Nocturne"), Self::NOCTURNE => Some("Nocturne"),
Self::NUNU_WILLUMP => Some("Nunu"), Self::NUNU_WILLUMP => Some("Nunu"),
Self::OLAF => Some("Olaf"), Self::OLAF => Some("Olaf"),
@ -996,6 +1001,7 @@ impl std::str::FromStr for Champion {
/* NAUT */ [ 'N', 'A', 'U', 'T'] => Ok(Champion::NAUTILUS), /* NAUT */ [ 'N', 'A', 'U', 'T'] => Ok(Champion::NAUTILUS),
/* NEEK */ [ 'N', 'E', 'E', 'K'] => Ok(Champion::NEEKO), /* NEEK */ [ 'N', 'E', 'E', 'K'] => Ok(Champion::NEEKO),
/* NIDA */ [ 'N', 'I', 'D', 'A'] => Ok(Champion::NIDALEE), /* NIDA */ [ 'N', 'I', 'D', 'A'] => Ok(Champion::NIDALEE),
/* NILA */ [ 'N', 'I', 'L', 'A'] => Ok(Champion::NILAH),
/* NOCT */ [ 'N', 'O', 'C', 'T'] => Ok(Champion::NOCTURNE), /* NOCT */ [ 'N', 'O', 'C', 'T'] => Ok(Champion::NOCTURNE),
/* NUNU */ [ 'N', 'U', 'N', 'U'] => Ok(Champion::NUNU_WILLUMP), /* NUNU */ [ 'N', 'U', 'N', 'U'] => Ok(Champion::NUNU_WILLUMP),
/* OLAF */ [ 'O', 'L', 'A', 'F'] => Ok(Champion::OLAF), /* OLAF */ [ 'O', 'L', 'A', 'F'] => Ok(Champion::OLAF),

View file

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 8afe7b8e927da46a6f41108e6dc7e1a8c71d89b9 // Version 3417abd2af40c6500ced39393b045652896cd0dd
//! Automatically generated endpoint handles. //! Automatically generated endpoint handles.
#![allow(clippy::let_and_return, clippy::too_many_arguments)] #![allow(clippy::let_and_return, clippy::too_many_arguments)]

View file

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 8afe7b8e927da46a6f41108e6dc7e1a8c71d89b9 // Version 3417abd2af40c6500ced39393b045652896cd0dd
//! Metadata about the Riot API and Riven. //! Metadata about the Riot API and Riven.
//! //!

View file

@ -7,7 +7,7 @@
/////////////////////////////////////////////// ///////////////////////////////////////////////
// http://www.mingweisamuel.com/riotapi-schema/tool/ // http://www.mingweisamuel.com/riotapi-schema/tool/
// Version 8afe7b8e927da46a6f41108e6dc7e1a8c71d89b9 // Version 3417abd2af40c6500ced39393b045652896cd0dd
#![allow(missing_docs)] #![allow(missing_docs)]