Giter VIP home page Giter VIP logo

swlegion-archived's Introduction

Database and Data Model for Star Wars: Legion.

Build Status

This package is written and maintained in Dart for maintainability. There is also a JSON format for use with other languages or systems (see 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.

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).

swlegion-archived's People

Contributors

matanlurey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

swlegion-archived's Issues

Add `Unit.wave` and `Wave` catalog

This will allow users to create armies that only contain units from certain releases, mostly common to exclude pre-release units, or units that are not accepted at a given tournament or match.

  • Add <Unit>.wave
  • Add class ReleaseWave with various waves in the catalog.
  • Add final ReleaseWave currentWave.
  • Add <ReleaseWave>.isReleased as a check against currentWave.

Add `UnitKey` and `UpgradeKey` and use instead ...

... of Unit and Upgrade for ArmyUnit. This will allow making the connection between the mutable and immutable classes more opaque, which means it will no longer require storing the catalog in JSON format to save Army[Unit] instances.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.