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

View File

@ -157,4 +157,23 @@ public enum GameType
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;
}
}