lor_deck_codes_dart 3.0.0 lor_deck_codes_dart: ^3.0.0 copied to clipboard
Dart library for decoding and encoding decks in Legend of Runeterra.
import 'package:lor_deck_codes_dart/CardCodeAndCount.dart';
import 'package:lor_deck_codes_dart/LoRDeckEncoder.dart';
void main() {
List<CardCodeAndCount> deck = LoRDeckEncoder.GetDeckFromCode(
'CEAQQAIAAECAMFBCEQTTMAQCAEBASGQFAEAAGCYSDUXQCAQBAADQY');
for (var card in deck) {
print(card.Count.toString() + ':' + card.CardCode);
}
String code = LoRDeckEncoder.GetCodeFromDeck(deck);
print(code);
}