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

Class UnitSetModelFactory

code/src/java/pcgen/output/factory/UnitSetModelFactory.java:28–43  ·  view source on GitHub ↗

An UnitSetModelFactory is a ModeModelFactory that produces an UnitSetModel for the current Game Mode

Source from the content-addressed store, hash-verified

26 * for the current Game Mode
27 */
28public class UnitSetModelFactory implements ModeModelFactory
29{
30
31 /*
32 * Note: It would be nice someday if this wasn't necessary as a separate
33 * class. A more "CDOM-like" structure in the GameMode object would allow
34 * the UnitSet to be grabbed "generically" as an ObjectKey, but that is just
35 * not in place today for GameMode.
36 */
37
38 @Override
39 public UnitSetModel generate(GameMode mode)
40 {
41 return new UnitSetModel(mode.getUnitSet());
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected