Initial commit. Load list of cards via config (packs or single cards).
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
using ArkhamPnP;
|
||||
|
||||
if (args.Length < 2)
|
||||
{
|
||||
Console.WriteLine("Usage: ArkhamPnP <CONFIG_FILE> <RESULT_FILE>");
|
||||
return 0;
|
||||
}
|
||||
var loader = new ConfigLoader(args[0]);
|
||||
var cards = await loader.LoadCards();
|
||||
|
||||
Console.WriteLine("Loaded cards:");
|
||||
foreach (var card in cards)
|
||||
{
|
||||
Console.WriteLine($"ID: {card.id} front: {card.image_src} back: {card.back_image_src}");
|
||||
}
|
||||
var composer = new PDFComposer();
|
||||
composer.PrintCards(cards, args[1]);
|
||||
|
||||
|
||||
return 0;
|
||||
Reference in New Issue
Block a user