add GameType#getAllMapNames

This commit is contained in:
Spencer 2017-12-30 21:39:11 -05:00 committed by Alexander Meech
parent 9707b46f50
commit af3328f6c0
1 changed files with 19 additions and 0 deletions

View File

@ -157,4 +157,23 @@ public enum GameType
return mapNames; return mapNames;
} }
public static List<String> getAllMapNames()
{
List<String> mapNames = new ArrayList<>();
for (GameType gameType : GameType.values())
{
List<String> gameMapNames = gameType.getMapNames();
if (gameMapNames == null)
{
continue;
}
mapNames.addAll(gameMapNames);
}
return mapNames;
}
} }