add GameType#getAllMapNames
This commit is contained in:
parent
9707b46f50
commit
af3328f6c0
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user