mirror of https://github.com/MingweiSamuel/Riven
Update to use mingweisamuel.com/riotapi-schema/enums
https://github.com/RiotGames/developer-relations/issues/340pull/23/head
parent
7105c778f4
commit
0f9d783b94
|
@ -16,42 +16,44 @@ use strum_macros::{ EnumString, Display, AsRefStr, IntoStaticStr };
|
||||||
#[derive(EnumString, Display, AsRefStr, IntoStaticStr)]
|
#[derive(EnumString, Display, AsRefStr, IntoStaticStr)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum GameMode {
|
pub enum GameMode {
|
||||||
/// Classic Summoner's Rift and Twisted Treeline games
|
|
||||||
CLASSIC,
|
|
||||||
/// Dominion/Crystal Scar games
|
|
||||||
ODIN,
|
|
||||||
/// ARAM games
|
/// ARAM games
|
||||||
ARAM,
|
ARAM,
|
||||||
|
/// All Random Summoner's Rift games
|
||||||
|
ARSR,
|
||||||
|
/// Ascension games
|
||||||
|
ASCENSION,
|
||||||
|
/// Blood Hunt Assassin games
|
||||||
|
ASSASSINATE,
|
||||||
|
/// Classic Summoner's Rift and Twisted Treeline games
|
||||||
|
CLASSIC,
|
||||||
|
/// Dark Star: Singularity games
|
||||||
|
DARKSTAR,
|
||||||
|
/// Doom Bot games
|
||||||
|
DOOMBOTSTEEMO,
|
||||||
|
/// Snowdown Showdown games
|
||||||
|
FIRSTBLOOD,
|
||||||
|
/// Nexus Blitz games, deprecated in patch 9.2 in favor of gameMode NEXUSBLITZ.
|
||||||
|
GAMEMODEX,
|
||||||
|
/// Legend of the Poro King games
|
||||||
|
KINGPORO,
|
||||||
|
/// Nexus Blitz games.
|
||||||
|
NEXUSBLITZ,
|
||||||
|
/// Dominion/Crystal Scar games
|
||||||
|
ODIN,
|
||||||
|
/// Odyssey: Extraction games
|
||||||
|
ODYSSEY,
|
||||||
|
/// One for All games
|
||||||
|
ONEFORALL,
|
||||||
|
/// PROJECT: Hunters games
|
||||||
|
PROJECT,
|
||||||
|
/// Nexus Siege games
|
||||||
|
SIEGE,
|
||||||
|
/// Star Guardian Invasion games
|
||||||
|
STARGUARDIAN,
|
||||||
/// Tutorial games
|
/// Tutorial games
|
||||||
TUTORIAL,
|
TUTORIAL,
|
||||||
/// URF games
|
/// URF games
|
||||||
URF,
|
URF,
|
||||||
/// Doom Bot games
|
|
||||||
DOOMBOTSTEEMO,
|
|
||||||
/// One for All games
|
|
||||||
ONEFORALL,
|
|
||||||
/// Ascension games
|
|
||||||
ASCENSION,
|
|
||||||
/// Snowdown Showdown games
|
|
||||||
FIRSTBLOOD,
|
|
||||||
/// Legend of the Poro King games
|
|
||||||
KINGPORO,
|
|
||||||
/// Nexus Siege games
|
|
||||||
SIEGE,
|
|
||||||
/// Blood Hunt Assassin games
|
|
||||||
ASSASSINATE,
|
|
||||||
/// All Random Summoner's Rift games
|
|
||||||
ARSR,
|
|
||||||
/// Dark Star: Singularity games
|
|
||||||
DARKSTAR,
|
|
||||||
/// Star Guardian Invasion games
|
|
||||||
STARGUARDIAN,
|
|
||||||
/// PROJECT: Hunters games
|
|
||||||
PROJECT,
|
|
||||||
/// Nexus Blitz games
|
|
||||||
GAMEMODEX,
|
|
||||||
/// Odyssey: Extraction games
|
|
||||||
ODYSSEY,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
serde_string!(GameMode);
|
serde_string!(GameMode);
|
||||||
|
|
|
@ -16,10 +16,10 @@ use strum_macros::{ EnumString, Display, AsRefStr, IntoStaticStr };
|
||||||
pub enum GameType {
|
pub enum GameType {
|
||||||
/// Custom games
|
/// Custom games
|
||||||
CUSTOM_GAME,
|
CUSTOM_GAME,
|
||||||
/// Tutorial games
|
|
||||||
TUTORIAL_GAME,
|
|
||||||
/// all other games
|
/// all other games
|
||||||
MATCHED_GAME,
|
MATCHED_GAME,
|
||||||
|
/// Tutorial games
|
||||||
|
TUTORIAL_GAME,
|
||||||
}
|
}
|
||||||
|
|
||||||
serde_string!(GameType);
|
serde_string!(GameType);
|
||||||
|
|
|
@ -17,57 +17,49 @@ use num_enum::{ IntoPrimitive, TryFromPrimitive };
|
||||||
#[derive(IntoPrimitive, TryFromPrimitive)]
|
#[derive(IntoPrimitive, TryFromPrimitive)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum Map {
|
pub enum Map {
|
||||||
|
|
||||||
/// Summoner's Rift
|
/// Summoner's Rift
|
||||||
/// <br>Original Summer variant
|
/// Original Summer variant
|
||||||
SUMMONERS_RIFT_ORIGINAL_SUMMER_VARIANT = 1,
|
SUMMONERS_RIFT_ORIGINAL_SUMMER_VARIANT = 1,
|
||||||
/// Summoner's Rift
|
/// Summoner's Rift
|
||||||
/// <br>Original Autumn variant
|
/// Original Autumn variant
|
||||||
SUMMONERS_RIFT_ORIGINAL_AUTUMN_VARIANT = 2,
|
SUMMONERS_RIFT_ORIGINAL_AUTUMN_VARIANT = 2,
|
||||||
/// Summoner's Rift
|
|
||||||
/// <br>Current Version
|
|
||||||
SUMMONERS_RIFT = 11,
|
|
||||||
|
|
||||||
/// The Proving Grounds
|
/// The Proving Grounds
|
||||||
/// <br>Tutorial Map
|
/// Tutorial Map
|
||||||
THE_PROVING_GROUNDS = 3,
|
THE_PROVING_GROUNDS = 3,
|
||||||
|
|
||||||
/// Twisted Treeline
|
/// Twisted Treeline
|
||||||
/// <br>Original Version
|
/// Original Version
|
||||||
TWISTED_TREELINE_ORIGINAL_VERSION = 4,
|
TWISTED_TREELINE_ORIGINAL_VERSION = 4,
|
||||||
/// Twisted Treeline
|
|
||||||
/// <br>Last TT map
|
|
||||||
TWISTED_TREELINE = 10,
|
|
||||||
|
|
||||||
/// The Crystal Scar
|
/// The Crystal Scar
|
||||||
/// <br>Dominion map
|
/// Dominion map
|
||||||
THE_CRYSTAL_SCAR = 8,
|
THE_CRYSTAL_SCAR = 8,
|
||||||
|
/// Twisted Treeline
|
||||||
|
/// Last TT map
|
||||||
|
TWISTED_TREELINE = 10,
|
||||||
|
/// Summoner's Rift
|
||||||
|
/// Current Version
|
||||||
|
SUMMONERS_RIFT = 11,
|
||||||
/// Howling Abyss
|
/// Howling Abyss
|
||||||
/// <br>ARAM map
|
/// ARAM map
|
||||||
HOWLING_ABYSS = 12,
|
HOWLING_ABYSS = 12,
|
||||||
|
|
||||||
/// Butcher's Bridge
|
/// Butcher's Bridge
|
||||||
/// <br>Alternate ARAM map
|
/// Alternate ARAM map
|
||||||
BUTCHERS_BRIDGE = 14,
|
BUTCHERS_BRIDGE = 14,
|
||||||
|
|
||||||
/// Cosmic Ruins
|
/// Cosmic Ruins
|
||||||
/// <br>Dark Star: Singularity map
|
/// Dark Star: Singularity map
|
||||||
COSMIC_RUINS = 16,
|
COSMIC_RUINS = 16,
|
||||||
|
|
||||||
/// Valoran City Park
|
/// Valoran City Park
|
||||||
/// <br>Star Guardian Invasion map
|
/// Star Guardian Invasion map
|
||||||
VALORAN_CITY_PARK = 18,
|
VALORAN_CITY_PARK = 18,
|
||||||
|
|
||||||
/// Substructure 43
|
/// Substructure 43
|
||||||
/// <br>PROJECT: Hunters map
|
/// PROJECT: Hunters map
|
||||||
SUBSTRUCTURE43 = 19,
|
SUBSTRUCTURE_43 = 19,
|
||||||
|
|
||||||
/// Crash Site
|
/// Crash Site
|
||||||
/// <br>Odyssey: Extraction map
|
/// Odyssey: Extraction map
|
||||||
CRASH_SITE = 20,
|
CRASH_SITE = 20,
|
||||||
|
|
||||||
/// Nexus Blitz
|
/// Nexus Blitz
|
||||||
/// <br>Nexus Blitz map
|
/// Nexus Blitz map
|
||||||
NEXUS_BLITZ = 21,
|
NEXUS_BLITZ = 21,
|
||||||
|
/// Convergence
|
||||||
|
/// Teamfight Tactics map
|
||||||
|
CONVERGENCE = 22,
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,298 +17,234 @@ use num_enum::{ IntoPrimitive, TryFromPrimitive };
|
||||||
#[derive(IntoPrimitive, TryFromPrimitive)]
|
#[derive(IntoPrimitive, TryFromPrimitive)]
|
||||||
#[repr(u16)]
|
#[repr(u16)]
|
||||||
pub enum Queue {
|
pub enum Queue {
|
||||||
|
/// Games on Custom games
|
||||||
/// Custom games.
|
CUSTOM = 0,
|
||||||
CUSTOM_GAMES_ = 0,
|
/// 5v5 Blind Pick games on Summoner's Rift
|
||||||
|
/// Deprecated in patch 7.19 in favor of queueId 430
|
||||||
/// 5v5 Blind Pick games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 430
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 430")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 430")]
|
||||||
SUMMONERS_RIFT_5V5_BLIND_PICK_GAMES_DEPRECATED_2 = 2,
|
SUMMONERS_RIFT_5V5_BLIND_PICK_DEPRECATED_2 = 2,
|
||||||
/// 5v5 Blind Pick games games on Summoner's Rift.
|
/// 5v5 Ranked Solo games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_5V5_BLIND_PICK_GAMES = 430,
|
/// Deprecated in favor of queueId 420
|
||||||
|
|
||||||
/// 5v5 Ranked Solo games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in favor of queueId 420
|
|
||||||
#[deprecated(note="Deprecated in favor of queueId 420")]
|
#[deprecated(note="Deprecated in favor of queueId 420")]
|
||||||
SUMMONERS_RIFT_5V5_RANKED_SOLO_GAMES_DEPRECATED_4 = 4,
|
SUMMONERS_RIFT_5V5_RANKED_SOLO_DEPRECATED_4 = 4,
|
||||||
/// 5v5 Ranked Solo games games on Summoner's Rift.
|
/// 5v5 Ranked Premade games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_5V5_RANKED_SOLO_GAMES = 420,
|
/// Game mode deprecated
|
||||||
|
|
||||||
/// 5v5 Ranked Premade games games on Summoner's Rift.
|
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
SUMMONERS_RIFT_5V5_RANKED_PREMADE_GAMES = 6,
|
SUMMONERS_RIFT_5V5_RANKED_PREMADE = 6,
|
||||||
|
/// Co-op vs AI games on Summoner's Rift
|
||||||
/// Co-op vs AI games games on Summoner's Rift.
|
/// Deprecated in favor of queueId 32 and 33
|
||||||
/// <br>Deprecated in favor of queueId 32 and 33
|
|
||||||
#[deprecated(note="Deprecated in favor of queueId 32 and 33")]
|
#[deprecated(note="Deprecated in favor of queueId 32 and 33")]
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_GAMES = 7,
|
SUMMONERS_RIFT_CO_OP_VS_AI = 7,
|
||||||
|
/// 3v3 Normal games on Twisted Treeline
|
||||||
/// 3v3 Normal games games on Twisted Treeline.
|
/// Deprecated in patch 7.19 in favor of queueId 460
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 460
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 460")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 460")]
|
||||||
TWISTED_TREELINE_3V3_NORMAL_GAMES = 8,
|
TWISTED_TREELINE_3V3_NORMAL = 8,
|
||||||
|
/// 3v3 Ranked Flex games on Twisted Treeline
|
||||||
/// 3v3 Ranked Flex games games on Twisted Treeline.
|
/// Deprecated in patch 7.19 in favor of queueId 470
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 470
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 470")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 470")]
|
||||||
TWISTED_TREELINE_3V3_RANKED_FLEX_GAMES_DEPRECATED_9 = 9,
|
TWISTED_TREELINE_3V3_RANKED_FLEX_DEPRECATED_9 = 9,
|
||||||
/// 3v3 Ranked Flex games games on Twisted Treeline.
|
/// 5v5 Draft Pick games on Summoner's Rift
|
||||||
/// <br>Deprecated in patch 9.23
|
/// Deprecated in favor of queueId 400
|
||||||
#[deprecated(note="Deprecated in patch 9.23")]
|
|
||||||
TWISTED_TREELINE_3V3_RANKED_FLEX_GAMES_DEPRECATED_470 = 470,
|
|
||||||
|
|
||||||
/// 5v5 Draft Pick games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in favor of queueId 400
|
|
||||||
#[deprecated(note="Deprecated in favor of queueId 400")]
|
#[deprecated(note="Deprecated in favor of queueId 400")]
|
||||||
SUMMONERS_RIFT_5V5_DRAFT_PICK_GAMES_DEPRECATED_14 = 14,
|
SUMMONERS_RIFT_5V5_DRAFT_PICK_DEPRECATED_14 = 14,
|
||||||
/// 5v5 Draft Pick games games on Summoner's Rift.
|
/// 5v5 Dominion Blind Pick games on Crystal Scar
|
||||||
SUMMONERS_RIFT_5V5_DRAFT_PICK_GAMES = 400,
|
/// Game mode deprecated
|
||||||
|
|
||||||
/// 5v5 Dominion Blind Pick games games on Crystal Scar.
|
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
CRYSTAL_SCAR_5V5_DOMINION_BLIND_PICK_GAMES = 16,
|
CRYSTAL_SCAR_5V5_DOMINION_BLIND_PICK = 16,
|
||||||
|
/// 5v5 Dominion Draft Pick games on Crystal Scar
|
||||||
/// 5v5 Dominion Draft Pick games games on Crystal Scar.
|
/// Game mode deprecated
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
CRYSTAL_SCAR_5V5_DOMINION_DRAFT_PICK_GAMES = 17,
|
CRYSTAL_SCAR_5V5_DOMINION_DRAFT_PICK = 17,
|
||||||
|
/// Dominion Co-op vs AI games on Crystal Scar
|
||||||
/// Dominion Co-op vs AI games games on Crystal Scar.
|
/// Game mode deprecated
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
CRYSTAL_SCAR_DOMINION_CO_OP_VS_AI_GAMES = 25,
|
CRYSTAL_SCAR_DOMINION_CO_OP_VS_AI = 25,
|
||||||
|
/// Co-op vs AI Intro Bot games on Summoner's Rift
|
||||||
/// Co-op vs AI Intro Bot games games on Summoner's Rift.
|
/// Deprecated in patch 7.19 in favor of queueId 830
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 830
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 830")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 830")]
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_INTRO_BOT_GAMES_DEPRECATED_31 = 31,
|
SUMMONERS_RIFT_CO_OP_VS_AI_INTRO_BOT_DEPRECATED_31 = 31,
|
||||||
/// Co-op vs. AI Intro Bot games games on Summoner's Rift.
|
/// Co-op vs AI Beginner Bot games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_INTRO_BOT_GAMES = 830,
|
/// Deprecated in patch 7.19 in favor of queueId 840
|
||||||
|
|
||||||
/// Co-op vs AI Beginner Bot games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 840
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 840")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 840")]
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_BEGINNER_BOT_GAMES_DEPRECATED_32 = 32,
|
SUMMONERS_RIFT_CO_OP_VS_AI_BEGINNER_BOT_DEPRECATED_32 = 32,
|
||||||
/// Co-op vs. AI Beginner Bot games games on Summoner's Rift.
|
/// Co-op vs AI Intermediate Bot games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_BEGINNER_BOT_GAMES = 840,
|
/// Deprecated in patch 7.19 in favor of queueId 850
|
||||||
|
|
||||||
/// Co-op vs AI Intermediate Bot games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 850
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 850")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 850")]
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_INTERMEDIATE_BOT_GAMES_DEPRECATED_33 = 33,
|
SUMMONERS_RIFT_CO_OP_VS_AI_INTERMEDIATE_BOT_DEPRECATED_33 = 33,
|
||||||
/// Co-op vs. AI Intermediate Bot games games on Summoner's Rift.
|
/// 3v3 Ranked Team games on Twisted Treeline
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_INTERMEDIATE_BOT_GAMES = 850,
|
/// Game mode deprecated
|
||||||
|
|
||||||
/// 3v3 Ranked Team games games on Twisted Treeline.
|
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
TWISTED_TREELINE_3V3_RANKED_TEAM_GAMES = 41,
|
TWISTED_TREELINE_3V3_RANKED_TEAM = 41,
|
||||||
|
/// 5v5 Ranked Team games on Summoner's Rift
|
||||||
/// 5v5 Ranked Team games games on Summoner's Rift.
|
/// Game mode deprecated
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
SUMMONERS_RIFT_5V5_RANKED_TEAM_GAMES = 42,
|
SUMMONERS_RIFT_5V5_RANKED_TEAM = 42,
|
||||||
|
/// Co-op vs AI games on Twisted Treeline
|
||||||
/// Co-op vs AI games games on Twisted Treeline.
|
/// Deprecated in patch 7.19 in favor of queueId 800
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 800
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 800")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 800")]
|
||||||
TWISTED_TREELINE_CO_OP_VS_AI_GAMES = 52,
|
TWISTED_TREELINE_CO_OP_VS_AI = 52,
|
||||||
|
/// 5v5 Team Builder games on Summoner's Rift
|
||||||
/// 5v5 Team Builder games games on Summoner's Rift.
|
/// Game mode deprecated
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
SUMMONERS_RIFT_5V5_TEAM_BUILDER_GAMES = 61,
|
SUMMONERS_RIFT_5V5_TEAM_BUILDER = 61,
|
||||||
|
/// 5v5 ARAM games on Howling Abyss
|
||||||
/// 5v5 ARAM games games on Howling Abyss.
|
/// Deprecated in patch 7.19 in favor of queueId 450
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 450
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 450")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 450")]
|
||||||
HOWLING_ABYSS_5V5_ARAM_GAMES_DEPRECATED_65 = 65,
|
HOWLING_ABYSS_5V5_ARAM_DEPRECATED_65 = 65,
|
||||||
/// 5v5 ARAM games games on Howling Abyss.
|
/// ARAM Co-op vs AI games on Howling Abyss
|
||||||
HOWLING_ABYSS_5V5_ARAM_GAMES = 450,
|
/// Game mode deprecated
|
||||||
|
|
||||||
/// ARAM Co-op vs AI games games on Howling Abyss.
|
|
||||||
/// <br>Game mode deprecated
|
|
||||||
#[deprecated(note="Game mode deprecated")]
|
#[deprecated(note="Game mode deprecated")]
|
||||||
HOWLING_ABYSS_ARAM_CO_OP_VS_AI_GAMES = 67,
|
HOWLING_ABYSS_ARAM_CO_OP_VS_AI = 67,
|
||||||
|
/// One for All games on Summoner's Rift
|
||||||
/// One for All games games on Summoner's Rift.
|
/// Deprecated in patch 8.6 in favor of queueId 1020
|
||||||
/// <br>Deprecated in patch 8.6 in favor of queueId 1020
|
|
||||||
#[deprecated(note="Deprecated in patch 8.6 in favor of queueId 1020")]
|
#[deprecated(note="Deprecated in patch 8.6 in favor of queueId 1020")]
|
||||||
SUMMONERS_RIFT_ONE_FOR_ALL_GAMES_DEPRECATED_70 = 70,
|
SUMMONERS_RIFT_ONE_FOR_ALL_DEPRECATED_70 = 70,
|
||||||
/// One for All games games on Summoner's Rift.
|
/// 1v1 Snowdown Showdown games on Howling Abyss
|
||||||
SUMMONERS_RIFT_ONE_FOR_ALL_GAMES = 1020,
|
HOWLING_ABYSS_1V1_SNOWDOWN_SHOWDOWN = 72,
|
||||||
|
/// 2v2 Snowdown Showdown games on Howling Abyss
|
||||||
/// 1v1 Snowdown Showdown games games on Howling Abyss.
|
HOWLING_ABYSS_2V2_SNOWDOWN_SHOWDOWN = 73,
|
||||||
HOWLING_ABYSS_1V1_SNOWDOWN_SHOWDOWN_GAMES = 72,
|
/// 6v6 Hexakill games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_6V6_HEXAKILL = 75,
|
||||||
/// 2v2 Snowdown Showdown games games on Howling Abyss.
|
/// Ultra Rapid Fire games on Summoner's Rift
|
||||||
HOWLING_ABYSS_2V2_SNOWDOWN_SHOWDOWN_GAMES = 73,
|
SUMMONERS_RIFT_ULTRA_RAPID_FIRE = 76,
|
||||||
|
/// One For All: Mirror Mode games on Howling Abyss
|
||||||
/// 6v6 Hexakill games games on Summoner's Rift.
|
HOWLING_ABYSS_ONE_FOR_ALL_MIRROR_MODE = 78,
|
||||||
SUMMONERS_RIFT_6V6_HEXAKILL_GAMES = 75,
|
/// Co-op vs AI Ultra Rapid Fire games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_CO_OP_VS_AI_ULTRA_RAPID_FIRE = 83,
|
||||||
/// Ultra Rapid Fire games games on Summoner's Rift.
|
/// Doom Bots Rank 1 games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_ULTRA_RAPID_FIRE_GAMES = 76,
|
/// Deprecated in patch 7.19 in favor of queueId 950
|
||||||
|
|
||||||
/// One For All: Mirror Mode games games on Howling Abyss.
|
|
||||||
HOWLING_ABYSS_ONE_FOR_ALL_MIRROR_MODE_GAMES = 78,
|
|
||||||
|
|
||||||
/// Co-op vs AI Ultra Rapid Fire games games on Summoner's Rift.
|
|
||||||
SUMMONERS_RIFT_CO_OP_VS_AI_ULTRA_RAPID_FIRE_GAMES = 83,
|
|
||||||
|
|
||||||
/// Doom Bots Rank 1 games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 950
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 950")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 950")]
|
||||||
SUMMONERS_RIFT_DOOM_BOTS_RANK1_GAMES = 91,
|
SUMMONERS_RIFT_DOOM_BOTS_RANK_1 = 91,
|
||||||
|
/// Doom Bots Rank 2 games on Summoner's Rift
|
||||||
/// Doom Bots Rank 2 games games on Summoner's Rift.
|
/// Deprecated in patch 7.19 in favor of queueId 950
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 950
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 950")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 950")]
|
||||||
SUMMONERS_RIFT_DOOM_BOTS_RANK2_GAMES = 92,
|
SUMMONERS_RIFT_DOOM_BOTS_RANK_2 = 92,
|
||||||
|
/// Doom Bots Rank 5 games on Summoner's Rift
|
||||||
/// Doom Bots Rank 5 games games on Summoner's Rift.
|
/// Deprecated in patch 7.19 in favor of queueId 950
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 950
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 950")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 950")]
|
||||||
SUMMONERS_RIFT_DOOM_BOTS_RANK5_GAMES = 93,
|
SUMMONERS_RIFT_DOOM_BOTS_RANK_5 = 93,
|
||||||
|
/// Ascension games on Crystal Scar
|
||||||
/// Ascension games games on Crystal Scar.
|
/// Deprecated in patch 7.19 in favor of queueId 910
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 910
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 910")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 910")]
|
||||||
CRYSTAL_SCAR_ASCENSION_GAMES_DEPRECATED_96 = 96,
|
CRYSTAL_SCAR_ASCENSION_DEPRECATED_96 = 96,
|
||||||
/// Ascension games games on Crystal Scar.
|
/// 6v6 Hexakill games on Twisted Treeline
|
||||||
CRYSTAL_SCAR_ASCENSION_GAMES = 910,
|
TWISTED_TREELINE_6V6_HEXAKILL = 98,
|
||||||
|
/// 5v5 ARAM games on Butcher's Bridge
|
||||||
/// 6v6 Hexakill games games on Twisted Treeline.
|
BUTCHERS_BRIDGE_5V5_ARAM = 100,
|
||||||
TWISTED_TREELINE_6V6_HEXAKILL_GAMES = 98,
|
/// Legend of the Poro King games on Howling Abyss
|
||||||
|
/// Deprecated in patch 7.19 in favor of queueId 920
|
||||||
/// 5v5 ARAM games games on Butcher's Bridge.
|
|
||||||
BUTCHERS_BRIDGE_5V5_ARAM_GAMES = 100,
|
|
||||||
|
|
||||||
/// Legend of the Poro King games games on Howling Abyss.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 920
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 920")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 920")]
|
||||||
HOWLING_ABYSS_LEGEND_OF_THE_PORO_KING_GAMES_DEPRECATED_300 = 300,
|
HOWLING_ABYSS_LEGEND_OF_THE_PORO_KING_DEPRECATED_300 = 300,
|
||||||
/// Legend of the Poro King games games on Howling Abyss.
|
/// Nemesis games on Summoner's Rift
|
||||||
HOWLING_ABYSS_LEGEND_OF_THE_PORO_KING_GAMES = 920,
|
SUMMONERS_RIFT_NEMESIS = 310,
|
||||||
|
/// Black Market Brawlers games on Summoner's Rift
|
||||||
/// Nemesis games games on Summoner's Rift.
|
SUMMONERS_RIFT_BLACK_MARKET_BRAWLERS = 313,
|
||||||
SUMMONERS_RIFT_NEMESIS_GAMES = 310,
|
/// Nexus Siege games on Summoner's Rift
|
||||||
|
/// Deprecated in patch 7.19 in favor of queueId 940
|
||||||
/// Black Market Brawlers games games on Summoner's Rift.
|
|
||||||
SUMMONERS_RIFT_BLACK_MARKET_BRAWLERS_GAMES = 313,
|
|
||||||
|
|
||||||
/// Nexus Siege games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 940
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 940")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 940")]
|
||||||
SUMMONERS_RIFT_NEXUS_SIEGE_GAMES_DEPRECATED_315 = 315,
|
SUMMONERS_RIFT_NEXUS_SIEGE_DEPRECATED_315 = 315,
|
||||||
/// Nexus Siege games games on Summoner's Rift.
|
/// Definitely Not Dominion games on Crystal Scar
|
||||||
SUMMONERS_RIFT_NEXUS_SIEGE_GAMES = 940,
|
CRYSTAL_SCAR_DEFINITELY_NOT_DOMINION = 317,
|
||||||
|
/// ARURF games on Summoner's Rift
|
||||||
/// Definitely Not Dominion games games on Crystal Scar.
|
/// Deprecated in patch 7.19 in favor of queueId 900
|
||||||
CRYSTAL_SCAR_DEFINITELY_NOT_DOMINION_GAMES = 317,
|
|
||||||
|
|
||||||
/// ARURF games games on Summoner's Rift.
|
|
||||||
/// <br>Deprecated in patch 7.19 in favor of queueId 900
|
|
||||||
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 900")]
|
#[deprecated(note="Deprecated in patch 7.19 in favor of queueId 900")]
|
||||||
SUMMONERS_RIFT_ARURF_GAMES = 318,
|
SUMMONERS_RIFT_ARURF = 318,
|
||||||
|
/// All Random games on Summoner's Rift
|
||||||
/// All Random games games on Summoner's Rift.
|
SUMMONERS_RIFT_ALL_RANDOM = 325,
|
||||||
SUMMONERS_RIFT_ALL_RANDOM_GAMES = 325,
|
/// 5v5 Draft Pick games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_5V5_DRAFT_PICK = 400,
|
||||||
/// 5v5 Ranked Dynamic games games on Summoner's Rift.
|
/// 5v5 Ranked Dynamic games on Summoner's Rift
|
||||||
/// <br>Game mode deprecated in patch 6.22
|
/// Game mode deprecated in patch 6.22
|
||||||
#[deprecated(note="Game mode deprecated in patch 6.22")]
|
#[deprecated(note="Game mode deprecated in patch 6.22")]
|
||||||
SUMMONERS_RIFT_5V5_RANKED_DYNAMIC_GAMES = 410,
|
SUMMONERS_RIFT_5V5_RANKED_DYNAMIC = 410,
|
||||||
|
/// 5v5 Ranked Solo games on Summoner's Rift
|
||||||
/// 5v5 Ranked Flex games games on Summoner's Rift.
|
SUMMONERS_RIFT_5V5_RANKED_SOLO = 420,
|
||||||
SUMMONERS_RIFT_5V5_RANKED_FLEX_GAMES = 440,
|
/// 5v5 Blind Pick games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_5V5_BLIND_PICK = 430,
|
||||||
/// 3v3 Blind Pick games games on Twisted Treeline.
|
/// 5v5 Ranked Flex games on Summoner's Rift
|
||||||
/// <br>Deprecated in patch 9.23
|
SUMMONERS_RIFT_5V5_RANKED_FLEX = 440,
|
||||||
|
/// 5v5 ARAM games on Howling Abyss
|
||||||
|
HOWLING_ABYSS_5V5_ARAM = 450,
|
||||||
|
/// 3v3 Blind Pick games on Twisted Treeline
|
||||||
|
/// Deprecated in patch 9.23
|
||||||
#[deprecated(note="Deprecated in patch 9.23")]
|
#[deprecated(note="Deprecated in patch 9.23")]
|
||||||
TWISTED_TREELINE_3V3_BLIND_PICK_GAMES = 460,
|
TWISTED_TREELINE_3V3_BLIND_PICK = 460,
|
||||||
|
/// 3v3 Ranked Flex games on Twisted Treeline
|
||||||
/// Blood Hunt Assassin games games on Summoner's Rift.
|
/// Deprecated in patch 9.23
|
||||||
SUMMONERS_RIFT_BLOOD_HUNT_ASSASSIN_GAMES = 600,
|
|
||||||
|
|
||||||
/// Dark Star: Singularity games games on Cosmic Ruins.
|
|
||||||
COSMIC_RUINS_DARK_STAR_SINGULARITY_GAMES = 610,
|
|
||||||
|
|
||||||
/// Clash games games on Summoner's Rift.
|
|
||||||
SUMMONERS_RIFT_CLASH_GAMES = 700,
|
|
||||||
|
|
||||||
/// Co-op vs. AI Intermediate Bot games games on Twisted Treeline.
|
|
||||||
/// <br>Deprecated in patch 9.23
|
|
||||||
#[deprecated(note="Deprecated in patch 9.23")]
|
#[deprecated(note="Deprecated in patch 9.23")]
|
||||||
TWISTED_TREELINE_CO_OP_VS_AI_INTERMEDIATE_BOT_GAMES = 800,
|
TWISTED_TREELINE_3V3_RANKED_FLEX_DEPRECATED_470 = 470,
|
||||||
|
/// Blood Hunt Assassin games on Summoner's Rift
|
||||||
/// Co-op vs. AI Intro Bot games games on Twisted Treeline.
|
SUMMONERS_RIFT_BLOOD_HUNT_ASSASSIN = 600,
|
||||||
/// <br>Deprecated in patch 9.23
|
/// Dark Star: Singularity games on Cosmic Ruins
|
||||||
|
COSMIC_RUINS_DARK_STAR_SINGULARITY = 610,
|
||||||
|
/// Clash games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_CLASH = 700,
|
||||||
|
/// Co-op vs. AI Intermediate Bot games on Twisted Treeline
|
||||||
|
/// Deprecated in patch 9.23
|
||||||
#[deprecated(note="Deprecated in patch 9.23")]
|
#[deprecated(note="Deprecated in patch 9.23")]
|
||||||
TWISTED_TREELINE_CO_OP_VS_AI_INTRO_BOT_GAMES = 810,
|
TWISTED_TREELINE_CO_OP_VS_AI_INTERMEDIATE_BOT = 800,
|
||||||
|
/// Co-op vs. AI Intro Bot games on Twisted Treeline
|
||||||
/// Co-op vs. AI Beginner Bot games games on Twisted Treeline.
|
/// Deprecated in patch 9.23
|
||||||
TWISTED_TREELINE_CO_OP_VS_AI_BEGINNER_BOT_GAMES = 820,
|
#[deprecated(note="Deprecated in patch 9.23")]
|
||||||
|
TWISTED_TREELINE_CO_OP_VS_AI_INTRO_BOT = 810,
|
||||||
/// URF games games on Summoner's Rift.
|
/// Co-op vs. AI Beginner Bot games on Twisted Treeline
|
||||||
SUMMONERS_RIFT_URF_GAMES = 900,
|
TWISTED_TREELINE_CO_OP_VS_AI_BEGINNER_BOT = 820,
|
||||||
|
/// Co-op vs. AI Intro Bot games on Summoner's Rift
|
||||||
/// Doom Bots Voting games games on Summoner's Rift.
|
SUMMONERS_RIFT_CO_OP_VS_AI_INTRO_BOT = 830,
|
||||||
SUMMONERS_RIFT_DOOM_BOTS_VOTING_GAMES = 950,
|
/// Co-op vs. AI Beginner Bot games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_CO_OP_VS_AI_BEGINNER_BOT = 840,
|
||||||
/// Doom Bots Standard games games on Summoner's Rift.
|
/// Co-op vs. AI Intermediate Bot games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_DOOM_BOTS_STANDARD_GAMES = 960,
|
SUMMONERS_RIFT_CO_OP_VS_AI_INTERMEDIATE_BOT = 850,
|
||||||
|
/// URF games on Summoner's Rift
|
||||||
/// Star Guardian Invasion: Normal games games on Valoran City Park.
|
SUMMONERS_RIFT_URF = 900,
|
||||||
VALORAN_CITY_PARK_STAR_GUARDIAN_INVASION_NORMAL_GAMES = 980,
|
/// Ascension games on Crystal Scar
|
||||||
|
CRYSTAL_SCAR_ASCENSION = 910,
|
||||||
/// Star Guardian Invasion: Onslaught games games on Valoran City Park.
|
/// Legend of the Poro King games on Howling Abyss
|
||||||
VALORAN_CITY_PARK_STAR_GUARDIAN_INVASION_ONSLAUGHT_GAMES = 990,
|
HOWLING_ABYSS_LEGEND_OF_THE_PORO_KING = 920,
|
||||||
|
/// Nexus Siege games on Summoner's Rift
|
||||||
/// PROJECT: Hunters games games on Overcharge.
|
SUMMONERS_RIFT_NEXUS_SIEGE = 940,
|
||||||
OVERCHARGE_PROJECT_HUNTERS_GAMES = 1000,
|
/// Doom Bots Voting games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_DOOM_BOTS_VOTING = 950,
|
||||||
/// Snow ARURF games games on Summoner's Rift.
|
/// Doom Bots Standard games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_SNOW_ARURF_GAMES = 1010,
|
SUMMONERS_RIFT_DOOM_BOTS_STANDARD = 960,
|
||||||
|
/// Star Guardian Invasion: Normal games on Valoran City Park
|
||||||
/// Odyssey Extraction: Intro games games on Crash Site.
|
VALORAN_CITY_PARK_STAR_GUARDIAN_INVASION_NORMAL = 980,
|
||||||
CRASH_SITE_ODYSSEY_EXTRACTION_INTRO_GAMES = 1030,
|
/// Star Guardian Invasion: Onslaught games on Valoran City Park
|
||||||
|
VALORAN_CITY_PARK_STAR_GUARDIAN_INVASION_ONSLAUGHT = 990,
|
||||||
/// Odyssey Extraction: Cadet games games on Crash Site.
|
/// PROJECT: Hunters games on Overcharge
|
||||||
CRASH_SITE_ODYSSEY_EXTRACTION_CADET_GAMES = 1040,
|
OVERCHARGE_PROJECT_HUNTERS = 1000,
|
||||||
|
/// Snow ARURF games on Summoner's Rift
|
||||||
/// Odyssey Extraction: Crewmember games games on Crash Site.
|
SUMMONERS_RIFT_SNOW_ARURF = 1010,
|
||||||
CRASH_SITE_ODYSSEY_EXTRACTION_CREWMEMBER_GAMES = 1050,
|
/// One for All games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_ONE_FOR_ALL = 1020,
|
||||||
/// Odyssey Extraction: Captain games games on Crash Site.
|
/// Odyssey Extraction: Intro games on Crash Site
|
||||||
CRASH_SITE_ODYSSEY_EXTRACTION_CAPTAIN_GAMES = 1060,
|
CRASH_SITE_ODYSSEY_EXTRACTION_INTRO = 1030,
|
||||||
|
/// Odyssey Extraction: Cadet games on Crash Site
|
||||||
/// Odyssey Extraction: Onslaught games games on Crash Site.
|
CRASH_SITE_ODYSSEY_EXTRACTION_CADET = 1040,
|
||||||
CRASH_SITE_ODYSSEY_EXTRACTION_ONSLAUGHT_GAMES = 1070,
|
/// Odyssey Extraction: Crewmember games on Crash Site
|
||||||
|
CRASH_SITE_ODYSSEY_EXTRACTION_CREWMEMBER = 1050,
|
||||||
/// Teamfight Tactics games games on Convergence.
|
/// Odyssey Extraction: Captain games on Crash Site
|
||||||
CONVERGENCE_TEAMFIGHT_TACTICS_GAMES = 1090,
|
CRASH_SITE_ODYSSEY_EXTRACTION_CAPTAIN = 1060,
|
||||||
|
/// Odyssey Extraction: Onslaught games on Crash Site
|
||||||
/// Ranked Teamfight Tactics games games on Convergence.
|
CRASH_SITE_ODYSSEY_EXTRACTION_ONSLAUGHT = 1070,
|
||||||
CONVERGENCE_RANKED_TEAMFIGHT_TACTICS_GAMES = 1100,
|
/// Teamfight Tactics games on Convergence
|
||||||
|
CONVERGENCE_TEAMFIGHT_TACTICS = 1090,
|
||||||
/// Teamfight Tactics Tutorial games games on Convergence.
|
/// Ranked Teamfight Tactics games on Convergence
|
||||||
CONVERGENCE_TEAMFIGHT_TACTICS_TUTORIAL_GAMES = 1110,
|
CONVERGENCE_RANKED_TEAMFIGHT_TACTICS = 1100,
|
||||||
|
/// Teamfight Tactics Tutorial games on Convergence
|
||||||
/// Nexus Blitz games games on Nexus Blitz.
|
CONVERGENCE_TEAMFIGHT_TACTICS_TUTORIAL = 1110,
|
||||||
/// <br>Deprecated in patch 9.2
|
/// Teamfight Tactics 1v0 testing games on Convergence
|
||||||
#[deprecated(note="Deprecated in patch 9.2")]
|
CONVERGENCE_TEAMFIGHT_TACTICS_1V0_TESTING = 1111,
|
||||||
NEXUS_BLITZ_NEXUS_BLITZ_GAMES = 1200,
|
/// Nexus Blitz games on Nexus Blitz
|
||||||
|
/// Deprecated in patch 9.2 in favor of queueId 1300
|
||||||
/// Tutorial 1 games on Summoner's Rift.
|
#[deprecated(note="Deprecated in patch 9.2 in favor of queueId 1300")]
|
||||||
SUMMONERS_RIFT_TUTORIAL1 = 2000,
|
NEXUS_BLITZ_NEXUS_BLITZ_DEPRECATED_1200 = 1200,
|
||||||
|
/// Nexus Blitz games on Nexus Blitz
|
||||||
/// Tutorial 2 games on Summoner's Rift.
|
NEXUS_BLITZ_NEXUS_BLITZ = 1300,
|
||||||
SUMMONERS_RIFT_TUTORIAL2 = 2010,
|
/// Tutorial 1 games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_TUTORIAL_1 = 2000,
|
||||||
/// Tutorial 3 games on Summoner's Rift.
|
/// Tutorial 2 games on Summoner's Rift
|
||||||
SUMMONERS_RIFT_TUTORIAL3 = 2020,
|
SUMMONERS_RIFT_TUTORIAL_2 = 2010,
|
||||||
|
/// Tutorial 3 games on Summoner's Rift
|
||||||
|
SUMMONERS_RIFT_TUTORIAL_3 = 2020,
|
||||||
}
|
}
|
|
@ -31,4 +31,6 @@ pub enum Season {
|
||||||
SEASON_2018 = 11,
|
SEASON_2018 = 11,
|
||||||
PRESEASON_2019 = 12,
|
PRESEASON_2019 = 12,
|
||||||
SEASON_2019 = 13,
|
SEASON_2019 = 13,
|
||||||
|
PRESEASON_2020 = 14,
|
||||||
|
SEASON_2020 = 15,
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,10 +14,13 @@ use strum_macros::{ EnumString, Display, AsRefStr, IntoStaticStr };
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum GameMode {
|
pub enum GameMode {
|
||||||
{{
|
{{
|
||||||
for (const { gameMode, description } of gameModes) {
|
for (const e of gameModes) {
|
||||||
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
||||||
}}
|
}}
|
||||||
/// {{= description }}
|
{{~ desc :line }}
|
||||||
{{= gameMode }},
|
/// {{= line }}
|
||||||
|
{{~}}
|
||||||
|
{{= e['x-name'] }},
|
||||||
{{
|
{{
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -12,10 +12,13 @@ use strum_macros::{ EnumString, Display, AsRefStr, IntoStaticStr };
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum GameType {
|
pub enum GameType {
|
||||||
{{
|
{{
|
||||||
for (const { gametype: gameType, description } of gameTypes) {
|
for (const e of gameTypes) {
|
||||||
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
||||||
}}
|
}}
|
||||||
/// {{= description }}
|
{{~ desc :line }}
|
||||||
{{= gameType }},
|
/// {{= line }}
|
||||||
|
{{~}}
|
||||||
|
{{= e['x-name'] }},
|
||||||
{{
|
{{
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{{
|
{{
|
||||||
const dotUtils = require('./dotUtils.js');
|
const dotUtils = require('./dotUtils.js');
|
||||||
const maps = require('./.maps.json');
|
const maps = require('./.maps.json');
|
||||||
const groupedMaps = maps.groupBy(({ mapName }) =>
|
|
||||||
dotUtils.changeCase.constantCase(mapName.replace(/[ ']+/, '')));
|
|
||||||
}}{{= dotUtils.preamble() }}
|
}}{{= dotUtils.preamble() }}
|
||||||
|
|
||||||
use serde_repr::{ Serialize_repr, Deserialize_repr };
|
use serde_repr::{ Serialize_repr, Deserialize_repr };
|
||||||
|
@ -17,20 +15,14 @@ use num_enum::{ IntoPrimitive, TryFromPrimitive };
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum Map {
|
pub enum Map {
|
||||||
{{
|
{{
|
||||||
for (const [ groupName, colMaps ] of groupedMaps) {
|
for (const e of maps) {
|
||||||
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
||||||
}}
|
}}
|
||||||
|
{{~ desc :line }}
|
||||||
|
/// {{= line }}
|
||||||
|
{{~}}
|
||||||
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
||||||
{{
|
{{
|
||||||
for (const [ i, { mapId, mapName, notes } ] of colMaps.entries()) {
|
|
||||||
let name = groupName;
|
|
||||||
if (i != colMaps.length - 1)
|
|
||||||
name += '_' + dotUtils.changeCase.constantCase(notes);
|
|
||||||
}}
|
|
||||||
/// {{= mapName }}
|
|
||||||
/// <br>{{= notes }}
|
|
||||||
{{= name }} = {{= mapId }},
|
|
||||||
{{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
{{
|
{{
|
||||||
const dotUtils = require('./dotUtils.js');
|
const dotUtils = require('./dotUtils.js');
|
||||||
const queues = require('./.queues.json');
|
const queues = require('./.queues.json');
|
||||||
|
|
||||||
const groupedQueues = queues.groupBy(({ map, description }) => {
|
|
||||||
const name = dotUtils.changeCase.constantCase((map || '').replace("'", ''))
|
|
||||||
+ '_' + dotUtils.changeCase.constantCase((description || '').replace(/\s+(?=\d)/g, ''));
|
|
||||||
return name;
|
|
||||||
});
|
|
||||||
}}{{= dotUtils.preamble() }}
|
}}{{= dotUtils.preamble() }}
|
||||||
|
|
||||||
use serde_repr::{ Serialize_repr, Deserialize_repr };
|
use serde_repr::{ Serialize_repr, Deserialize_repr };
|
||||||
|
@ -21,25 +15,18 @@ use num_enum::{ IntoPrimitive, TryFromPrimitive };
|
||||||
#[repr(u16)]
|
#[repr(u16)]
|
||||||
pub enum Queue {
|
pub enum Queue {
|
||||||
{{
|
{{
|
||||||
for (let [ groupName, colQueues ] of groupedQueues) {
|
for (const e of queues) {
|
||||||
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
||||||
}}
|
}}
|
||||||
|
{{~ desc :line }}
|
||||||
{{
|
/// {{= line }}
|
||||||
for (let { queueId, map, description, notes } of colQueues) {
|
{{~}}
|
||||||
const doc = (description ? description + ' games on ' : '') + map;
|
{{? e['x-deprecated'] }}
|
||||||
const deprecated = (notes || '').toUpperCase().indexOf('DEPRECATED') >= 0;
|
/// {{= e.notes }}
|
||||||
const name = groupName + ((colQueues.length > 1 && deprecated) ? `_DEPRECATED_${queueId}` : '');
|
#[deprecated(note="{{= e.notes }}")]
|
||||||
}}
|
|
||||||
/// {{= doc }}.
|
|
||||||
{{? notes }}
|
|
||||||
/// <br>{{= notes }}
|
|
||||||
{{?}}
|
{{?}}
|
||||||
{{? deprecated}}
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
||||||
#[deprecated(note="{{= notes }}")]
|
|
||||||
{{?}}
|
|
||||||
{{= name }} = {{= queueId }},
|
|
||||||
{{
|
{{
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
}
|
}
|
|
@ -15,10 +15,13 @@ use num_enum::{ IntoPrimitive, TryFromPrimitive };
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum Season {
|
pub enum Season {
|
||||||
{{
|
{{
|
||||||
for (const { id, season } of seasons) {
|
for (const e of seasons) {
|
||||||
const name = season.replace(' ', '_');
|
const desc = e['x-desc'] ? e['x-desc'].split('\n') : [];
|
||||||
}}
|
}}
|
||||||
{{= name }} = {{= id }},
|
{{~ desc :line }}
|
||||||
|
/// {{= line }}
|
||||||
|
{{~}}
|
||||||
|
{{= e['x-name'] }} = {{= e['x-value'] }},
|
||||||
{{
|
{{
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -16,23 +16,23 @@ const files = [
|
||||||
'.spec.json'
|
'.spec.json'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'http://static.developer.riotgames.com/docs/lol/seasons.json',
|
'http://www.mingweisamuel.com/riotapi-schema/enums/seasons.json',
|
||||||
'.seasons.json'
|
'.seasons.json'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'http://static.developer.riotgames.com/docs/lol/queues.json',
|
'http://www.mingweisamuel.com/riotapi-schema/enums/queues.json',
|
||||||
'.queues.json'
|
'.queues.json'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'http://static.developer.riotgames.com/docs/lol/gameTypes.json',
|
'http://www.mingweisamuel.com/riotapi-schema/enums/gameTypes.json',
|
||||||
'.gameTypes.json'
|
'.gameTypes.json'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'http://static.developer.riotgames.com/docs/lol/gameModes.json',
|
'http://www.mingweisamuel.com/riotapi-schema/enums/gameModes.json',
|
||||||
'.gameModes.json'
|
'.gameModes.json'
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'http://static.developer.riotgames.com/docs/lol/maps.json',
|
'http://www.mingweisamuel.com/riotapi-schema/enums/maps.json',
|
||||||
'.maps.json'
|
'.maps.json'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue