-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
33 lines (32 loc) · 941 Bytes
/
Program.cs
File metadata and controls
33 lines (32 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Yugioh;
class Program
{
static void Main(string[] args)
{
var cardsJsonPath = "tmp/cards.json";
var assetFigureDir = "asset/figure";
var outputArtworkDir = "figure";
bool debug = false;
bool usePng = false;
foreach (var arg in args)
{
if (arg.ToLower() == "--debug")
{
debug = true;
}
else if (arg.ToLower() == "--png")
{
usePng = true;
}
}
if (debug)
{
AppLogger.Info("Program", "调试模式已启用,仅处理 dev/debug.txt 中指定 ID 的卡片。");
}
if (usePng)
{
AppLogger.Info("Program", "输出格式已设置为 PNG,将生成无损图像而非 JPG。");
}
CardGenerator.GenerateCardImages(cardsJsonPath, assetFigureDir, outputArtworkDir, debug, usePng);
}
}