Builds the "game mode" data model @return Returns a Map containing the "game mode" information
(GameMode mode)
| 187 | * @return Returns a Map containing the "game mode" information |
| 188 | */ |
| 189 | public static Map<String, Object> buildModeDataModel(GameMode mode) |
| 190 | { |
| 191 | Map<String, Object> input = new HashMap<>(); |
| 192 | modeModels.forEach((key, modelFactory) -> |
| 193 | input.put(key.toString(), modelFactory.generate(mode))); |
| 194 | return input; |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Registers a ModeModelFactory under the given name. |
no test coverage detected