We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b77d0ad + 49f92aa commit 60b6a17Copy full SHA for 60b6a17
1 file changed
Quaver.API/Helpers/ModeHelper.cs
@@ -12,7 +12,7 @@ namespace Quaver.API.Helpers
12
{
13
public static class ModeHelper
14
15
- public static int MaxKeyCount => Enum.GetValues(typeof(GameMode)).Length;
+ public static int MaxKeyCount => AllModes.Length;
16
17
/// <summary>
18
/// Converts game mode to short hand version.
@@ -118,5 +118,18 @@ public static bool IsKeyMode(GameMode mode)
118
// we only have keys gamemode for now...
119
return true;
120
}
121
+
122
+ public static bool IsRanked(GameMode mode){
123
+ switch (mode)
124
+ {
125
+ case GameMode.Keys4:
126
+ case GameMode.Keys7:
127
+ return true;
128
+ default:
129
+ return false;
130
+ }
131
132
133
+ public static readonly GameMode[] AllModes = (GameMode[])Enum.GetValues(typeof(GameMode));
134
135
0 commit comments