mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-01-25 18:27:27 -08:00
regen for season updates
This commit is contained in:
parent
5b70c9203c
commit
623dce2280
6 changed files with 21 additions and 7 deletions
|
@ -98,6 +98,7 @@ newtype_enum! {
|
||||||
/// `MALZAHAR` | "Malzahar" | "Malzahar" | 90
|
/// `MALZAHAR` | "Malzahar" | "Malzahar" | 90
|
||||||
/// `MAOKAI` | "Maokai" | "Maokai" | 57
|
/// `MAOKAI` | "Maokai" | "Maokai" | 57
|
||||||
/// `MASTER_YI` | "Master Yi" | "MasterYi" | 11
|
/// `MASTER_YI` | "Master Yi" | "MasterYi" | 11
|
||||||
|
/// `MEL` | "Mel" | "Mel" | 800
|
||||||
/// `MILIO` | "Milio" | "Milio" | 902
|
/// `MILIO` | "Milio" | "Milio" | 902
|
||||||
/// `MISS_FORTUNE` | "Miss Fortune" | "MissFortune" | 21
|
/// `MISS_FORTUNE` | "Miss Fortune" | "MissFortune" | 21
|
||||||
/// `MORDEKAISER` | "Mordekaiser" | "Mordekaiser" | 82
|
/// `MORDEKAISER` | "Mordekaiser" | "Mordekaiser" | 82
|
||||||
|
@ -352,6 +353,8 @@ newtype_enum! {
|
||||||
MAOKAI = 57,
|
MAOKAI = 57,
|
||||||
/// `11`.
|
/// `11`.
|
||||||
MASTER_YI = 11,
|
MASTER_YI = 11,
|
||||||
|
/// `800`.
|
||||||
|
MEL = 800,
|
||||||
/// `902`.
|
/// `902`.
|
||||||
MILIO = 902,
|
MILIO = 902,
|
||||||
/// `21`.
|
/// `21`.
|
||||||
|
@ -616,6 +619,7 @@ impl Champion {
|
||||||
Self::MALZAHAR => Some("Malzahar"),
|
Self::MALZAHAR => Some("Malzahar"),
|
||||||
Self::MAOKAI => Some("Maokai"),
|
Self::MAOKAI => Some("Maokai"),
|
||||||
Self::MASTER_YI => Some("Master Yi"),
|
Self::MASTER_YI => Some("Master Yi"),
|
||||||
|
Self::MEL => Some("Mel"),
|
||||||
Self::MILIO => Some("Milio"),
|
Self::MILIO => Some("Milio"),
|
||||||
Self::MISS_FORTUNE => Some("Miss Fortune"),
|
Self::MISS_FORTUNE => Some("Miss Fortune"),
|
||||||
Self::MORDEKAISER => Some("Mordekaiser"),
|
Self::MORDEKAISER => Some("Mordekaiser"),
|
||||||
|
@ -809,6 +813,7 @@ impl Champion {
|
||||||
Self::MALZAHAR => Some("Malzahar"),
|
Self::MALZAHAR => Some("Malzahar"),
|
||||||
Self::MAOKAI => Some("Maokai"),
|
Self::MAOKAI => Some("Maokai"),
|
||||||
Self::MASTER_YI => Some("MasterYi"),
|
Self::MASTER_YI => Some("MasterYi"),
|
||||||
|
Self::MEL => Some("Mel"),
|
||||||
Self::MILIO => Some("Milio"),
|
Self::MILIO => Some("Milio"),
|
||||||
Self::MISS_FORTUNE => Some("MissFortune"),
|
Self::MISS_FORTUNE => Some("MissFortune"),
|
||||||
Self::MORDEKAISER => Some("Mordekaiser"),
|
Self::MORDEKAISER => Some("Mordekaiser"),
|
||||||
|
@ -1040,6 +1045,7 @@ impl std::str::FromStr for Champion {
|
||||||
/* MALZ */ [ 'M', 'A', 'L', 'Z'] => Ok(Champion::MALZAHAR),
|
/* MALZ */ [ 'M', 'A', 'L', 'Z'] => Ok(Champion::MALZAHAR),
|
||||||
/* MAOK */ [ 'M', 'A', 'O', 'K'] => Ok(Champion::MAOKAI),
|
/* MAOK */ [ 'M', 'A', 'O', 'K'] => Ok(Champion::MAOKAI),
|
||||||
/* MAST */ [ 'M', 'A', 'S', 'T'] => Ok(Champion::MASTER_YI),
|
/* MAST */ [ 'M', 'A', 'S', 'T'] => Ok(Champion::MASTER_YI),
|
||||||
|
/* MEL */ [ 'M', 'E', 'L', '\0'] => Ok(Champion::MEL),
|
||||||
/* MILI */ [ 'M', 'I', 'L', 'I'] => Ok(Champion::MILIO),
|
/* MILI */ [ 'M', 'I', 'L', 'I'] => Ok(Champion::MILIO),
|
||||||
/* MISS */ [ 'M', 'I', 'S', 'S'] => Ok(Champion::MISS_FORTUNE),
|
/* MISS */ [ 'M', 'I', 'S', 'S'] => Ok(Champion::MISS_FORTUNE),
|
||||||
/* MORD */ [ 'M', 'O', 'R', 'D'] => Ok(Champion::MORDEKAISER),
|
/* MORD */ [ 'M', 'O', 'R', 'D'] => Ok(Champion::MORDEKAISER),
|
||||||
|
|
|
@ -61,6 +61,8 @@ pub enum GameMode {
|
||||||
STARGUARDIAN,
|
STARGUARDIAN,
|
||||||
/// Swarm
|
/// Swarm
|
||||||
STRAWBERRY,
|
STRAWBERRY,
|
||||||
|
/// Swiftplay Summoner's Rift
|
||||||
|
SWIFTPLAY,
|
||||||
/// Teamfight Tactics.
|
/// Teamfight Tactics.
|
||||||
TFT,
|
TFT,
|
||||||
/// Tutorial games
|
/// Tutorial games
|
||||||
|
|
|
@ -244,6 +244,9 @@ newtype_enum! {
|
||||||
/// Deprecated in patch 9.23
|
/// Deprecated in patch 9.23
|
||||||
#[deprecated(note="Deprecated in patch 9.23")]
|
#[deprecated(note="Deprecated in patch 9.23")]
|
||||||
TWISTED_TREELINE_3V3_RANKED_FLEX_DEPRECATED_470 = 470,
|
TWISTED_TREELINE_3V3_RANKED_FLEX_DEPRECATED_470 = 470,
|
||||||
|
/// `480`.
|
||||||
|
/// Normal (Swiftplay) games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_NORMAL_SWIFTPLAY = 480,
|
||||||
/// `490`.
|
/// `490`.
|
||||||
/// Normal (Quickplay) games on Summoner's Rift
|
/// Normal (Quickplay) games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_NORMAL_QUICKPLAY = 490,
|
SUMMONERS_RIFT_NORMAL_QUICKPLAY = 490,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
|
|
||||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||||
// Version 3db3221cc1b657c2acddf6ce02428680f38ad9aa
|
// Version 9c1b8bdd90aa4346eea65d7b95a418855deac47c
|
||||||
|
|
||||||
//! 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)]
|
||||||
|
@ -666,12 +666,12 @@ impl<'a> LeagueExpV4<'a> {
|
||||||
///
|
///
|
||||||
/// Note: this method is automatically generated.
|
/// Note: this method is automatically generated.
|
||||||
pub fn get_league_entries(&self, route: PlatformRoute, queue: crate::consts::QueueType, tier: crate::consts::Tier, division: crate::consts::Division, page: Option<i32>)
|
pub fn get_league_entries(&self, route: PlatformRoute, queue: crate::consts::QueueType, tier: crate::consts::Tier, division: crate::consts::Division, page: Option<i32>)
|
||||||
-> impl Future<Output = Result<Vec<league_exp_v4::LeagueEntry>>> + 'a
|
-> impl Future<Output = Result<Option<Vec<league_exp_v4::LeagueEntry>>>> + 'a
|
||||||
{
|
{
|
||||||
let route_str = route.into();
|
let route_str = route.into();
|
||||||
let request = self.base.request(Method::GET, route_str, &format!("/lol/league-exp/v4/entries/{}/{}/{}", queue, tier, division));
|
let request = self.base.request(Method::GET, route_str, &format!("/lol/league-exp/v4/entries/{}/{}/{}", queue, tier, division));
|
||||||
let request = if let Some(page) = page { request.query(&[ ("page", page) ]) } else { request };
|
let request = if let Some(page) = page { request.query(&[ ("page", page) ]) } else { request };
|
||||||
let future = self.base.execute_val::<Vec<league_exp_v4::LeagueEntry>>("league-exp-v4.getLeagueEntries", route_str, request);
|
let future = self.base.execute_opt::<Vec<league_exp_v4::LeagueEntry>>("league-exp-v4.getLeagueEntries", route_str, request);
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
let future = future.instrument(tracing::info_span!("league-exp-v4.getLeagueEntries"));
|
let future = future.instrument(tracing::info_span!("league-exp-v4.getLeagueEntries"));
|
||||||
future
|
future
|
||||||
|
@ -739,12 +739,12 @@ impl<'a> LeagueV4<'a> {
|
||||||
///
|
///
|
||||||
/// Note: this method is automatically generated.
|
/// Note: this method is automatically generated.
|
||||||
pub fn get_league_entries(&self, route: PlatformRoute, queue: crate::consts::QueueType, tier: crate::consts::Tier, division: crate::consts::Division, page: Option<i32>)
|
pub fn get_league_entries(&self, route: PlatformRoute, queue: crate::consts::QueueType, tier: crate::consts::Tier, division: crate::consts::Division, page: Option<i32>)
|
||||||
-> impl Future<Output = Result<Vec<league_v4::LeagueEntry>>> + 'a
|
-> impl Future<Output = Result<Option<Vec<league_v4::LeagueEntry>>>> + 'a
|
||||||
{
|
{
|
||||||
let route_str = route.into();
|
let route_str = route.into();
|
||||||
let request = self.base.request(Method::GET, route_str, &format!("/lol/league/v4/entries/{}/{}/{}", queue, tier, division));
|
let request = self.base.request(Method::GET, route_str, &format!("/lol/league/v4/entries/{}/{}/{}", queue, tier, division));
|
||||||
let request = if let Some(page) = page { request.query(&[ ("page", page) ]) } else { request };
|
let request = if let Some(page) = page { request.query(&[ ("page", page) ]) } else { request };
|
||||||
let future = self.base.execute_val::<Vec<league_v4::LeagueEntry>>("league-v4.getLeagueEntries", route_str, request);
|
let future = self.base.execute_opt::<Vec<league_v4::LeagueEntry>>("league-v4.getLeagueEntries", route_str, request);
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
let future = future.instrument(tracing::info_span!("league-v4.getLeagueEntries"));
|
let future = future.instrument(tracing::info_span!("league-v4.getLeagueEntries"));
|
||||||
future
|
future
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
|
|
||||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||||
// Version 3db3221cc1b657c2acddf6ce02428680f38ad9aa
|
// Version 9c1b8bdd90aa4346eea65d7b95a418855deac47c
|
||||||
|
|
||||||
//! Metadata about the Riot API and Riven.
|
//! Metadata about the Riot API and Riven.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
|
|
||||||
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
// http://www.mingweisamuel.com/riotapi-schema/tool/
|
||||||
// Version 3db3221cc1b657c2acddf6ce02428680f38ad9aa
|
// Version 9c1b8bdd90aa4346eea65d7b95a418855deac47c
|
||||||
|
|
||||||
#![allow(missing_docs)]
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
|
@ -1984,6 +1984,9 @@ pub mod match_v5 {
|
||||||
pub rift_herald: Objective,
|
pub rift_herald: Objective,
|
||||||
#[serde(rename = "tower")]
|
#[serde(rename = "tower")]
|
||||||
pub tower: Objective,
|
pub tower: Objective,
|
||||||
|
#[serde(rename = "atakhan")]
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub atakhan: Option<Objective>,
|
||||||
}
|
}
|
||||||
/// Objective data object.
|
/// Objective data object.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
|
Loading…
Reference in a new issue