diff --git a/riven/src/consts/champion.rs b/riven/src/consts/champion.rs index 75bf66b..6f33df7 100644 --- a/riven/src/consts/champion.rs +++ b/riven/src/consts/champion.rs @@ -93,6 +93,7 @@ newtype_enum! { /// `MALZAHAR` | "Malzahar" | "Malzahar" | 90 /// `MAOKAI` | "Maokai" | "Maokai" | 57 /// `MASTER_YI` | "Master Yi" | "MasterYi" | 11 + /// `MILIO` | "Milio" | "Milio" | 902 /// `MISS_FORTUNE` | "Miss Fortune" | "MissFortune" | 21 /// `MORDEKAISER` | "Mordekaiser" | "Mordekaiser" | 82 /// `MORGANA` | "Morgana" | "Morgana" | 25 @@ -336,6 +337,8 @@ newtype_enum! { MAOKAI = 57, /// `11`. MASTER_YI = 11, + /// `902`. + MILIO = 902, /// `21`. MISS_FORTUNE = 21, /// `82`. @@ -590,6 +593,7 @@ impl Champion { Self::MALZAHAR => Some("Malzahar"), Self::MAOKAI => Some("Maokai"), Self::MASTER_YI => Some("Master Yi"), + Self::MILIO => Some("Milio"), Self::MISS_FORTUNE => Some("Miss Fortune"), Self::MORDEKAISER => Some("Mordekaiser"), Self::MORGANA => Some("Morgana"), @@ -776,6 +780,7 @@ impl Champion { Self::MALZAHAR => Some("Malzahar"), Self::MAOKAI => Some("Maokai"), Self::MASTER_YI => Some("MasterYi"), + Self::MILIO => Some("Milio"), Self::MISS_FORTUNE => Some("MissFortune"), Self::MORDEKAISER => Some("Mordekaiser"), Self::MORGANA => Some("Morgana"), @@ -1000,6 +1005,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), + /* 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), /* MORG */ [ 'M', 'O', 'R', 'G'] => Ok(Champion::MORGANA), diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index a4a4bc6..82cf3b0 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version d9133c31439c2d38263002fad5fa824f2ea0cb8b +// Version f3bb2db3eef1ffd9fa3bb8ce0fdaf1c167dc6ae2 //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] diff --git a/riven/src/lib.rs b/riven/src/lib.rs index 06044cd..3297b5c 100644 --- a/riven/src/lib.rs +++ b/riven/src/lib.rs @@ -59,7 +59,7 @@ //! .get_all_champion_masteries(PlatformRoute::NA1, &summoner.id).await //! .expect("Get champion masteries failed."); //! -//! // Print champioon masteries. +//! // Print champion masteries. //! for (i, mastery) in masteries.iter().take(10).enumerate() { //! println!("{: >2}) {: <9} {: >7} ({})", i + 1, //! mastery.champion_id.name().unwrap_or("UNKNOWN"), diff --git a/riven/src/meta.rs b/riven/src/meta.rs index 5e084cd..d63bb09 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version d9133c31439c2d38263002fad5fa824f2ea0cb8b +// Version f3bb2db3eef1ffd9fa3bb8ce0fdaf1c167dc6ae2 //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index 411f1fe..4058d0f 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version d9133c31439c2d38263002fad5fa824f2ea0cb8b +// Version f3bb2db3eef1ffd9fa3bb8ce0fdaf1c167dc6ae2 #![allow(missing_docs)] @@ -2419,7 +2419,7 @@ pub mod tft_league_v1 { #[serde(rename = "tier")] #[serde(skip_serializing_if = "Option::is_none")] pub tier: Option, - /// A player's division within a tier. Not included for the RANKED_TFT_TURBO queueType. + /// The player's division within a tier. Not included for the RANKED_TFT_TURBO queueType. #[serde(rename = "rank")] #[serde(skip_serializing_if = "Option::is_none")] pub rank: Option, @@ -2513,6 +2513,12 @@ pub mod tft_match_v1 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct Info { + #[serde(rename = "tft_game_type")] + #[serde(skip_serializing_if = "Option::is_none")] + pub tft_game_type: Option, + #[serde(rename = "tft_set_core_name")] + #[serde(skip_serializing_if = "Option::is_none")] + pub tft_set_core_name: Option, /// Unix timestamp. #[serde(rename = "game_datetime")] pub game_datetime: i64, @@ -2540,6 +2546,12 @@ pub mod tft_match_v1 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct Participant { + #[serde(rename = "augments")] + #[serde(skip_serializing_if = "Option::is_none")] + pub augments: Option>, + #[serde(rename = "partner_group_id")] + #[serde(skip_serializing_if = "Option::is_none")] + pub partner_group_id: Option, /// Participant's companion. #[serde(rename = "companion")] pub companion: Companion, @@ -2601,6 +2613,9 @@ pub mod tft_match_v1 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct Unit { + #[serde(rename = "itemNames")] + #[serde(skip_serializing_if = "Option::is_none")] + pub item_names: Option>, /// A list of the unit's items. Please refer to the Teamfight Tactics documentation for item ids. #[serde(rename = "items")] pub items: std::vec::Vec, @@ -2626,6 +2641,9 @@ pub mod tft_match_v1 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct Companion { + #[serde(rename = "item_ID")] + #[serde(skip_serializing_if = "Option::is_none")] + pub item_id: Option, #[serde(rename = "skin_ID")] pub skin_id: i32, #[serde(rename = "content_ID")]