From b0f27af9cd936fc81c0f6e4abddd4ba2cd04944e Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Fri, 3 May 2024 09:58:27 -0700 Subject: [PATCH] Regen for queue ID updates, timeline `participantFrames` dict (patch 14.9) --- riven/src/consts/queue.rs | 15 ++++++++------- riven/src/consts/queue_type.rs | 2 +- riven/src/endpoints.rs | 2 +- riven/src/meta.rs | 2 +- riven/src/models.rs | 34 ++-------------------------------- 5 files changed, 13 insertions(+), 42 deletions(-) diff --git a/riven/src/consts/queue.rs b/riven/src/consts/queue.rs index e582444..06f9297 100644 --- a/riven/src/consts/queue.rs +++ b/riven/src/consts/queue.rs @@ -246,9 +246,7 @@ newtype_enum! { TWISTED_TREELINE_3V3_RANKED_FLEX_DEPRECATED_470 = 470, /// `490`. /// Normal (Quickplay) games on Summoner's Rift - /// - /// https://github.com/RiotGames/developer-relations/issues/846 - SUMMONERS_RIFT_NORMAL_QUICKPLAY_ = 490, + SUMMONERS_RIFT_NORMAL_QUICKPLAY = 490, /// `600`. /// Blood Hunt Assassin games on Summoner's Rift SUMMONERS_RIFT_BLOOD_HUNT_ASSASSIN = 600, @@ -353,16 +351,16 @@ newtype_enum! { CONVERGENCE_TEAMFIGHT_TACTICS_SIMLUATION = 1111, /// `1130`. /// Ranked Teamfight Tactics (Hyper Roll) games on Convergence - CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_HYPER_ROLL_ = 1130, + CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_HYPER_ROLL = 1130, /// `1150`. /// Ranked Teamfight Tactics (Double Up Workshop) games on Convergence /// /// Deprecated in patch 12.11 in favor of queueId 1160 #[deprecated(note="Deprecated in patch 12.11 in favor of queueId 1160")] - CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_DOUBLE_UP_WORKSHOP__DEPRECATED_1150 = 1150, + CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_DOUBLE_UP_WORKSHOP_DEPRECATED_1150 = 1150, /// `1160`. /// Ranked Teamfight Tactics (Double Up Workshop) games on Convergence - CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_DOUBLE_UP_WORKSHOP_ = 1160, + CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_DOUBLE_UP_WORKSHOP = 1160, /// `1200`. /// Nexus Blitz games on Nexus Blitz /// @@ -377,7 +375,10 @@ newtype_enum! { SUMMONERS_RIFT_ULTIMATE_SPELLBOOK = 1400, /// `1700`. /// 2v2v2v2 `CHERRY` games on Arena - ARENA_2V2V2V2_CHERRY_ = 1700, + ARENA_2V2V2V2_CHERRY = 1700, + /// `1710`. + /// Arena (`CHERRY` games) games on Rings of Wrath + RINGS_OF_WRATH_ARENA_CHERRY_GAMES = 1710, /// `1900`. /// Pick URF games on Summoner's Rift SUMMONERS_RIFT_PICK_URF = 1900, diff --git a/riven/src/consts/queue_type.rs b/riven/src/consts/queue_type.rs index 9b18e18..90a878d 100644 --- a/riven/src/consts/queue_type.rs +++ b/riven/src/consts/queue_type.rs @@ -38,7 +38,7 @@ pub enum QueueType { RANKED_TFT_PAIRS, /// Ranked Teamfight Tactics (Double Up Workshop) games RANKED_TFT_DOUBLE_UP, - /// 2v2v2v2 "Arena" games + /// "Arena" games CHERRY, } diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 855bee7..6a1098c 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 41709c9467fb6608974d90fc3b12980cd76acde3 +// Version a70746fcf353ba0ad0aceceafcc70d4ba8de4431 //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] diff --git a/riven/src/meta.rs b/riven/src/meta.rs index 81afd69..5a127a8 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 41709c9467fb6608974d90fc3b12980cd76acde3 +// Version a70746fcf353ba0ad0aceceafcc70d4ba8de4431 //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index ecb3fad..20aa408 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -8,7 +8,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 41709c9467fb6608974d90fc3b12980cd76acde3 +// Version a70746fcf353ba0ad0aceceafcc70d4ba8de4431 #![allow(missing_docs)] @@ -2079,36 +2079,6 @@ pub mod match_v5 { #[serde(rename = "xp")] pub xp: i32, } - /// MatchTimelineInfoFrameParticipantFrames data object. - #[derive(Clone, Debug)] - #[derive(serde::Serialize, serde::Deserialize)] - #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] - pub struct MatchTimelineInfoFrameParticipantFrames { - #[serde(rename = "1")] - pub x1: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "2")] - pub x2: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "3")] - pub x3: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "4")] - pub x4: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "5")] - pub x5: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "6")] - pub x6: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "7")] - pub x7: MatchTimelineInfoFrameParticipantFrame, - #[serde(rename = "8")] - pub x8: MatchTimelineInfoFrameParticipantFrame, - /// Possibly null for the Arena 2v2v2v2 (`CHERRY`) game mode. - #[serde(rename = "9")] - #[serde(skip_serializing_if = "Option::is_none")] - pub x9: Option, - /// Possibly null for the Arena 2v2v2v2 (`CHERRY`) game mode. - #[serde(rename = "10")] - #[serde(skip_serializing_if = "Option::is_none")] - pub x10: Option, - } /// MatchTimelineInfoFrame data object. #[derive(Clone, Debug)] #[derive(serde::Serialize, serde::Deserialize)] @@ -2118,7 +2088,7 @@ pub mod match_v5 { pub events: std::vec::Vec, #[serde(rename = "participantFrames")] #[serde(skip_serializing_if = "Option::is_none")] - pub participant_frames: Option, + pub participant_frames: Option>, #[serde(rename = "timestamp")] pub timestamp: i32, }