lor_deck_codes_dart 1.0.0+4

  • Readme
  • Changelog
  • Example
  • Installing
  • new61

Runeterra Dart #

This project is a dart library for decoding and encoding decks in Legend of Runeterra. It is based on RiotGames/LoRDeckCodes

Install #

Installation is in lor_deck_codes_dart in Installing section

How to use #

You can create deck like I showed down below. This deck is Budget Elites (New Players) from lor.mobalytics.gg.

Decode #

List<CardCodeAndCount> deck = LoRDeckEncoder.GetDeckFromCode(
      'CEAQQAIAAECAMFBCEQTTMAQCAEBASGQFAEAAGCYSDUXQCAQBAADQY');  
      /* 
        3:01DE001
        3:01DE004
        3:01DE006
        3:01DE020
        3:01DE034
        3:01DE036
        3:01DE039
        3:01DE054
        2:01IO009
        2:01IO026
        2:01DE003
        2:01DE011
        2:01DE018
        2:01DE029
        2:01DE047
        1:01DE007
        1:01DE012
      */
      deck[0].CardCode //01DE001
      deck[0].Count //3

Encode #

  String code = LoRDeckEncoder.GetCodeFromDeck(deck);
  //CEAQQAIAAECAMFBCEQTTMAQCAEBASGQFAEAAGCYSDUXQCAQBAADQY

Notes #

This package is using fixnum package for creating a fixed-width 32-bit integer in dart

1.0.0+4 #

  • Some typos in LorDeckEncoder.dart fixed

1.0.0+3 #

  • Some typos in LorDeckEncoder.dart fixed

1.0.0+2 #

  • Some typos in LorDeckEncoder.dart fixed

1.0.0+1 #

  • missing ; added
  • example folder and example file added for show how to use code

1.0.0 #

  • Package upload.
  • Required Classes, functions created and Tested by UnitTest.

example/README.md

Simple Sample #

If you will run the example.dart you will see simple usage of the code.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  lor_deck_codes_dart: ^1.0.0+4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:lor_deck_codes_dart/Base32.dart';
import 'package:lor_deck_codes_dart/CardCodeAndCount.dart';
import 'package:lor_deck_codes_dart/LoRDeckEncoder.dart';
import 'package:lor_deck_codes_dart/VarintTranslator.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
23
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
61
Learn more about scoring.

We analyzed this package on Feb 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health issues and suggestions

Document public APIs. (-1 points)

26 out of 26 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
fixnum ^0.10.11 0.10.11
Dev dependencies
pedantic ^1.8.0
test ^1.6.0