From 2cb714b447a7cd7d010f869ea0386f108b37ee8c Mon Sep 17 00:00:00 2001 From: AJ Richardson Date: Fri, 15 Dec 2017 16:23:20 -0500 Subject: [PATCH] Update constants (#23) --- RiotNet/Models/Constants.cs | 71 +++++++++++++++++++++++++++++++++++++ RiotNet/Models/Enums.cs | 63 ++++++++++++++++++++++++++++++-- 2 files changed, 132 insertions(+), 2 deletions(-) diff --git a/RiotNet/Models/Constants.cs b/RiotNet/Models/Constants.cs index 668be6c..01f4521 100644 --- a/RiotNet/Models/Constants.cs +++ b/RiotNet/Models/Constants.cs @@ -118,6 +118,14 @@ public static class GameMode /// public const string TUTORIAL = "TUTORIAL"; /// + /// Ultra-Rapid-Fire + /// + public const string URF = "URF"; + /// + /// Boom Bots + /// + public const string DOOMBOTSTEEMO = "DOOMBOTSTEEMO"; + /// /// One for All, played on both Summoner's Rift and Howling Abyss. /// public const string ONEFORALL = "ONEFORALL"; @@ -149,6 +157,14 @@ public static class GameMode /// Darkstar /// public const string DARKSTAR = "DARKSTAR"; + /// + /// Star Guardian Invasion + /// + public const string STARGUARDIAN = "STARGUARDIAN"; + /// + /// PROJECT: Hunters + /// + public const string PROJECT = "PROJECT"; } /// @@ -365,6 +381,61 @@ public static class MapType public const string HOWLING_ABYSS = "HOWLING_ABYSS"; } + /// + /// Represents a map ID for a match. + /// + public static class MapId + { + /// + /// Summoner's Rift (original version - summer) + /// + public const int SUMMONERS_RIFT_V1_SUMMER = 1; + /// + /// Summoner's Rift (original version - autumn) + /// + public const int SUMMONERS_RIFT_V1_AUTUMN = 2; + /// + /// Proving Grounds (tutorial) + /// + public const int PROVING_GROUNDS = 3; + /// + /// Twisted Treeline (original version) + /// + public const int TWISTED_TREELINE_V1 = 4; + /// + /// Crystal Scar (dominion) + /// + public const int CRYSTAL_SCAR = 8; + /// + /// Twisted Treeline (current version) + /// + public const int TWISTED_TREELINE_V2 = 10; + /// + /// Summoner's Rift (current version) + /// + public const int SUMMONERS_RIFT_V2 = 11; + /// + /// Howling Abyss (ARAM) + /// + public const int HOWLING_ABYSS = 12; + /// + /// Butcher's Bridge (ARAM) + /// + public const int BUTCHERS_BRIDGE = 14; + /// + /// Cosmic Ruins (Dark Star: Singularity) + /// + public const int COSMIC_RUINS = 16; + /// + /// Valoran City (Star Guardian Invasion) + /// + public const int VALORAN_CITY = 18; + /// + /// Substructure 43 (PROJECT: Hunters) + /// + public const int SUBSTRUCTURE_43 = 19; + } + /// /// Represents a player's role. /// diff --git a/RiotNet/Models/Enums.cs b/RiotNet/Models/Enums.cs index e28741b..2b560af 100644 --- a/RiotNet/Models/Enums.cs +++ b/RiotNet/Models/Enums.cs @@ -1,4 +1,6 @@ -namespace RiotNet.Models +using System; + +namespace RiotNet.Models { /// /// Respresents the queue type. @@ -16,14 +18,17 @@ public enum QueueType /// /// Ranked Solo 5v5 /// + [Obsolete("Use TEAM_BUILDER_RANKED_SOLO (ID 430) instead")] RANKED_SOLO_5x5 = 4, /// /// Ranked Premade 5v5. This queue is deprecated. /// + [Obsolete("This queue is deprecated")] RANKED_PREMADE_5x5 = 6, /// /// Historical Summoner's Rift Coop vs AI. This queue is deprecated. /// + [Obsolete("Use BOT_5x5_BEGINNER (ID 830) or BOT_5x5_INTERMEDIATE (ID 840) instead")] BOT_5x5 = 7, /// /// Normal 3v3 @@ -40,18 +45,22 @@ public enum QueueType /// /// Normal 5v5 Draft Pick /// + [Obsolete("Use TEAM_BUILDER_DRAFT_UNRANKED_5x5 (ID 400) instead")] NORMAL_5x5_DRAFT = 14, /// /// Dominion 5v5 Blind Pick /// + [Obsolete("This queue is deprecated")] ODIN_5x5_BLIND = 16, /// /// Dominion 5v5 Draft Pick /// + [Obsolete("This queue is deprecated")] ODIN_5x5_DRAFT = 17, /// /// Dominion Coop vs AI /// + [Obsolete("This queue is deprecated")] BOT_ODIN_5x5 = 25, /// /// Summoner's Rift Coop vs AI Intro Bot @@ -68,10 +77,12 @@ public enum QueueType /// /// Ranked Team 3v3 /// + [Obsolete("Use RANKED_FLEX_TT (ID 470) instead")] RANKED_TEAM_3x3 = 41, /// /// Ranked Team 5v5 /// + [Obsolete("Use RANKED_FLEX_SR (ID 440) instead")] RANKED_TEAM_5x5 = 42, /// /// Twisted Treeline Coop vs AI (Intermediate bots) @@ -92,6 +103,7 @@ public enum QueueType /// /// Team Builder /// + [Obsolete("This queue is deprecated")] GROUP_FINDER_5x5 = 61, /// /// All Random All Mid @@ -124,18 +136,22 @@ public enum QueueType /// /// Doom Bots Rank 1 /// + [Obsolete("Use DOOM_BOTS_VOTING (ID 950) instead")] NIGHTMARE_BOT_5x5_RANK1 = 91, /// /// Doom Bots Rank 2 /// + [Obsolete("Use DOOM_BOTS_VOTING (ID 950) instead")] NIGHTMARE_BOT_5x5_RANK2 = 92, /// /// Doom Bots Rank 5 /// + [Obsolete("Use DOOM_BOTS_VOTING (ID 950) instead")] NIGHTMARE_BOT_5x5_RANK5 = 93, /// /// Ascension /// + [Obsolete("Use ASCENSION (ID 910) instead")] ASCENSION_5x5 = 96, /// /// Twisted Treeline Hexakill @@ -148,6 +164,7 @@ public enum QueueType /// /// King Poro /// + [Obsolete("Use PORO_KING (ID 920) instead")] KING_PORO_5x5 = 300, /// /// Nemesis draft @@ -168,6 +185,7 @@ public enum QueueType /// /// All Random URF /// + [Obsolete("Use ARURF (ID 900) instead")] ARURF_5x5 = 318, /// /// All Random Summoner's Rift @@ -180,6 +198,7 @@ public enum QueueType /// /// Ranked Dynamic Queue. This queue is deprecated. /// + [Obsolete("Use RANKED_FLEX_SR (ID 440) instead")] TEAM_BUILDER_DRAFT_RANKED_5x5 = 410, /// /// Ranked Solo/Duo Queue @@ -198,9 +217,49 @@ public enum QueueType /// ASSASSINATE_5x5 = 600, /// - /// Darkstar + /// Dark Star: Singularity /// DARKSTAR_3x3 = 610, + /// + /// All random URF + /// + ARURF = 900, + /// + /// Ascension + /// + ASCENSION = 910, + /// + /// Legend of the Poro King + /// + PORO_KING = 920, + /// + /// Nexus Siege + /// + NEXUS_SIEGE = 940, + /// + /// Doom Bots (voting) + /// + DOOM_BOTS_VOTING = 950, + /// + /// Doom Bots (standard) + /// + DOOM_BOTS_STANDARD = 960, + /// + /// Star Guardian Invasion: Normal + /// + STAR_GUARDIAN_NORMAL = 980, + /// + /// Star Guardian Invasion: Onslaught + /// + STAR_GUARDIAN_ONSLAUGHT = 990, + /// + /// PROJECT: Hunters + /// + OVERCHARGE = 1000, + /// + /// All random URF (snow) + /// + ARURF_SNOW = 1010, } ///