feat(cli): add --cell-size flag, route png through build_png

This commit is contained in:
2026-03-23 02:47:58 +01:00
parent 87d49f8959
commit 4842000c31
2 changed files with 17 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ type ExporterFactory = fn(&BlockPalette) -> Box<dyn StructureExporter>;
const REGISTRY: &[(&str, ExporterFactory)] = &[
("mcfunction", |p| Box::new(McFunctionExporter::new(p))),
("litematica", |p| Box::new(LitematicaExporter::new(p))),
// cell_size=16 default; CLI uses build_png() to honour --cell-size
("png", |p| Box::new(PngExporter::new(p, 16))),
];