From 623dce228052eaa7ca1fc9f55403729d3042af3b Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Fri, 10 Jan 2025 15:54:27 -0800 Subject: [PATCH] regen for season updates --- riven/src/consts/champion.rs | 6 ++++++ riven/src/consts/game_mode.rs | 2 ++ riven/src/consts/queue.rs | 3 +++ riven/src/endpoints.rs | 10 +++++----- riven/src/meta.rs | 2 +- riven/src/models.rs | 5 ++++- 6 files changed, 21 insertions(+), 7 deletions(-) diff --git a/riven/src/consts/champion.rs b/riven/src/consts/champion.rs index 94ef4ff..dc5d68b 100644 --- a/riven/src/consts/champion.rs +++ b/riven/src/consts/champion.rs @@ -98,6 +98,7 @@ newtype_enum! { /// `MALZAHAR` | "Malzahar" | "Malzahar" | 90 /// `MAOKAI` | "Maokai" | "Maokai" | 57 /// `MASTER_YI` | "Master Yi" | "MasterYi" | 11 + /// `MEL` | "Mel" | "Mel" | 800 /// `MILIO` | "Milio" | "Milio" | 902 /// `MISS_FORTUNE` | "Miss Fortune" | "MissFortune" | 21 /// `MORDEKAISER` | "Mordekaiser" | "Mordekaiser" | 82 @@ -352,6 +353,8 @@ newtype_enum! { MAOKAI = 57, /// `11`. MASTER_YI = 11, + /// `800`. + MEL = 800, /// `902`. MILIO = 902, /// `21`. @@ -616,6 +619,7 @@ impl Champion { Self::MALZAHAR => Some("Malzahar"), Self::MAOKAI => Some("Maokai"), Self::MASTER_YI => Some("Master Yi"), + Self::MEL => Some("Mel"), Self::MILIO => Some("Milio"), Self::MISS_FORTUNE => Some("Miss Fortune"), Self::MORDEKAISER => Some("Mordekaiser"), @@ -809,6 +813,7 @@ impl Champion { Self::MALZAHAR => Some("Malzahar"), Self::MAOKAI => Some("Maokai"), Self::MASTER_YI => Some("MasterYi"), + Self::MEL => Some("Mel"), Self::MILIO => Some("Milio"), Self::MISS_FORTUNE => Some("MissFortune"), Self::MORDEKAISER => Some("Mordekaiser"), @@ -1040,6 +1045,7 @@ impl std::str::FromStr for Champion { /* MALZ */ [ 'M', 'A', 'L', 'Z'] => Ok(Champion::MALZAHAR), /* MAOK */ [ 'M', 'A', 'O', 'K'] => Ok(Champion::MAOKAI), /* 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), /* MISS */ [ 'M', 'I', 'S', 'S'] => Ok(Champion::MISS_FORTUNE), /* MORD */ [ 'M', 'O', 'R', 'D'] => Ok(Champion::MORDEKAISER), diff --git a/riven/src/consts/game_mode.rs b/riven/src/consts/game_mode.rs index 8f1317f..89f9708 100644 --- a/riven/src/consts/game_mode.rs +++ b/riven/src/consts/game_mode.rs @@ -61,6 +61,8 @@ pub enum GameMode { STARGUARDIAN, /// Swarm STRAWBERRY, + /// Swiftplay Summoner's Rift + SWIFTPLAY, /// Teamfight Tactics. TFT, /// Tutorial games diff --git a/riven/src/consts/queue.rs b/riven/src/consts/queue.rs index 572040b..13d2b37 100644 --- a/riven/src/consts/queue.rs +++ b/riven/src/consts/queue.rs @@ -244,6 +244,9 @@ newtype_enum! { /// Deprecated in patch 9.23 #[deprecated(note="Deprecated in patch 9.23")] TWISTED_TREELINE_3V3_RANKED_FLEX_DEPRECATED_470 = 470, + /// `480`. + /// Normal (Swiftplay) games on Summoner's Rift + SUMMONERS_RIFT_NORMAL_SWIFTPLAY = 480, /// `490`. /// Normal (Quickplay) games on Summoner's Rift SUMMONERS_RIFT_NORMAL_QUICKPLAY = 490, diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 25da1c9..1e4cec2 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 3db3221cc1b657c2acddf6ce02428680f38ad9aa +// Version 9c1b8bdd90aa4346eea65d7b95a418855deac47c //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] @@ -666,12 +666,12 @@ impl<'a> LeagueExpV4<'a> { /// /// 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) - -> impl Future>> + 'a + -> impl Future>>> + 'a { 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 = if let Some(page) = page { request.query(&[ ("page", page) ]) } else { request }; - let future = self.base.execute_val::>("league-exp-v4.getLeagueEntries", route_str, request); + let future = self.base.execute_opt::>("league-exp-v4.getLeagueEntries", route_str, request); #[cfg(feature = "tracing")] let future = future.instrument(tracing::info_span!("league-exp-v4.getLeagueEntries")); future @@ -739,12 +739,12 @@ impl<'a> LeagueV4<'a> { /// /// 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) - -> impl Future>> + 'a + -> impl Future>>> + 'a { let route_str = route.into(); 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 future = self.base.execute_val::>("league-v4.getLeagueEntries", route_str, request); + let future = self.base.execute_opt::>("league-v4.getLeagueEntries", route_str, request); #[cfg(feature = "tracing")] let future = future.instrument(tracing::info_span!("league-v4.getLeagueEntries")); future diff --git a/riven/src/meta.rs b/riven/src/meta.rs index d29a4c0..1d3488c 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 3db3221cc1b657c2acddf6ce02428680f38ad9aa +// Version 9c1b8bdd90aa4346eea65d7b95a418855deac47c //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index bd07868..6559764 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 3db3221cc1b657c2acddf6ce02428680f38ad9aa +// Version 9c1b8bdd90aa4346eea65d7b95a418855deac47c #![allow(missing_docs)] @@ -1984,6 +1984,9 @@ pub mod match_v5 { pub rift_herald: Objective, #[serde(rename = "tower")] pub tower: Objective, + #[serde(rename = "atakhan")] + #[serde(skip_serializing_if = "Option::is_none")] + pub atakhan: Option, } /// Objective data object. #[derive(Clone, Debug)]