Skip to content

Commit 60b6a17

Browse files
authored
Merge pull request #204 from Warp9000/10k
10k 2: electric bogaloo
2 parents b77d0ad + 49f92aa commit 60b6a17

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Quaver.API/Helpers/ModeHelper.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Quaver.API.Helpers
1212
{
1313
public static class ModeHelper
1414
{
15-
public static int MaxKeyCount => Enum.GetValues(typeof(GameMode)).Length;
15+
public static int MaxKeyCount => AllModes.Length;
1616

1717
/// <summary>
1818
/// Converts game mode to short hand version.
@@ -118,5 +118,18 @@ public static bool IsKeyMode(GameMode mode)
118118
// we only have keys gamemode for now...
119119
return true;
120120
}
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));
121134
}
122135
}

0 commit comments

Comments
 (0)