JSON-Serializable Data Model and Card Database for Star Wars: Legion
Database and Data Model for Star Wars: Legion.
This package is written and maintained in Dart for maintainability. Future
versions will have
JSON-formatted build artifacts as well for use within other
Star Wars, Star Wars: Legion and all related properties and text are owned by Fantasy Flight Games, Lucasfilm Ltd., and/or Disney.
This package provides 2 libraries:
catalog is a (best effort) collection of all known cards and other models
that may change over time. Common APIs include:
swlegion.dart is just the data models, with the idea that they are
used to create
catalog.dart (and exported as
catalog.json for use in
There is also a utility class
Catalog (or the built-in instance,
which adds the ability to do easy aggregations or compuations, for example which
Upgrade(s) are valid given a
Unit instance or reference, and a utility class
Holodeck for running dice simulations and calculating statistics.