From ad82fe291f3b931e0a9c21935a38ac72bfdbce5d Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 30 Oct 2021 18:22:09 +0100 Subject: [PATCH] Add suuport for 32x32 tiles --- agb-image-converter/src/config.rs | 3 +++ agb-image-converter/src/lib.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/agb-image-converter/src/config.rs b/agb-image-converter/src/config.rs index 1c2c62da..559f3e09 100644 --- a/agb-image-converter/src/config.rs +++ b/agb-image-converter/src/config.rs @@ -93,6 +93,8 @@ pub enum TileSizeV1 { Tile8, #[serde(rename = "16x16")] Tile16, + #[serde(rename = "32x32")] + Tile32, } impl From for TileSize { @@ -100,6 +102,7 @@ impl From for TileSize { match item { TileSizeV1::Tile8 => TileSize::Tile8, TileSizeV1::Tile16 => TileSize::Tile16, + TileSizeV1::Tile32 => TileSize::Tile32, } } } diff --git a/agb-image-converter/src/lib.rs b/agb-image-converter/src/lib.rs index 02eddcf4..c3a5fa4d 100644 --- a/agb-image-converter/src/lib.rs +++ b/agb-image-converter/src/lib.rs @@ -19,6 +19,7 @@ use colour::Colour; pub(crate) enum TileSize { Tile8, Tile16, + Tile32, } impl TileSize { @@ -26,6 +27,7 @@ impl TileSize { match self { TileSize::Tile8 => 8, TileSize::Tile16 => 16, + TileSize::Tile32 => 32, } } }