swlegion 0.3.0 copy "swlegion: ^0.3.0" to clipboard
swlegion: ^0.3.0 copied to clipboard

outdated

JSON-Serializable Data Model and Card Database for Star Wars: Legion

Database and Data Model for Star Wars: Legion.

Build Status

This package is written and maintained in Dart for maintainability. Future versions will have JSON-formatted build artifacts as well for use within other systems.

Star Wars, Star Wars: Legion and all related properties and text are owned by Fantasy Flight Games, Lucasfilm Ltd., and/or Disney.

Usage #

This package provides 2 libraries: database.dart and swlegion.dart. Library database is a (best effort) collection of all known cards and other models that may change over time. Common APIs include:

  • allCommands and Commands
  • allUnits and Units
  • allUpgrades and Upgrades
  • allWeapons and Weapons

Library swlegion.dart is just the data models, with the idea that they are used to create database.dart. In future versions, data may be exported to an API and/or JSON, and the data models should be used to access the data once deserialized.

There is also a utility class Holodeck (or the built-in instance, holodeck) which adds the ability to do easy aggregations or compuations, for example which Upgrade(s) are valid given a Unit instance or reference.

0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

JSON-Serializable Data Model and Card Database for Star Wars: Legion

Repository (GitHub)
View/report issues
Contributing

License

MIT (LICENSE)

Dependencies

args, built_collection, built_value, meta

More

Packages that depend on swlegion