Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matanlurey/swlegion-archived
Star Wars: Legion Database for Dart and JSON
https://github.com/matanlurey/swlegion-archived
dart legion star-wars
Last synced: about 2 months ago
JSON representation
Star Wars: Legion Database for Dart and JSON
- Host: GitHub
- URL: https://github.com/matanlurey/swlegion-archived
- Owner: matanlurey
- License: mit
- Archived: true
- Created: 2018-12-05T05:50:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-18T20:43:09.000Z (over 5 years ago)
- Last Synced: 2024-09-25T19:19:55.638Z (about 2 months ago)
- Topics: dart, legion, star-wars
- Language: Dart
- Size: 28.1 MB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Database and Data Model for [Star Wars: Legion][1].
[![Build Status](https://travis-ci.org/hquplink/swlegion.svg?branch=master)](https://travis-ci.org/hquplink/swlegion)
This package is written and maintained in [Dart][2] for maintainability. There
is also a JSON format for use with other languages or systems (see
[`lib/catalog.json`][json]).[json]: https://github.com/hquplink/swlegion/blob/master/lib/catalog.json
_Star Wars, Star Wars: Legion and all related properties and text are owned by Fantasy Flight Games, Lucasfilm Ltd., and/or Disney._
[1]: https://www.fantasyflightgames.com/en/products/star-wars-legion/
[2]: https://www.dartlang.org/## Usage
This package provides 2 libraries: `catalog.dart` and `swlegion.dart`. Library
`catalog` is a (best effort) collection of all known cards and other models
that may change over time. Common APIs include:- `catalog.commands` and `Commands`
- `catalog.units` and `Units`
- `catalog.upgrades` and `Upgrades`
- `catalog.weapons` and `Weapons`Library `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
non-Dart clients).There is also a utility class `Catalog` (or the built-in instance, `catalog`)
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
(`holodeck.dart`).