MCPcopy Create free account
hub / github.com/PCGen/pcgen / buildModeDataModel

Method buildModeDataModel

code/src/java/pcgen/output/publish/OutputDB.java:189–195  ·  view source on GitHub ↗

Builds the "game mode" data model @return Returns a Map containing the "game mode" information

(GameMode mode)

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls 4

forEachMethod · 0.80
putMethod · 0.65
toStringMethod · 0.65
generateMethod · 0.65

Tested by

no test coverage detected