Add suuport for 32x32 tiles

This commit is contained in:
Gwilym Kuiper 2021-10-30 18:22:09 +01:00
parent 6ed9b06b22
commit ad82fe291f
2 changed files with 5 additions and 0 deletions

View file

@ -93,6 +93,8 @@ pub enum TileSizeV1 {
Tile8, Tile8,
#[serde(rename = "16x16")] #[serde(rename = "16x16")]
Tile16, Tile16,
#[serde(rename = "32x32")]
Tile32,
} }
impl From<TileSizeV1> for TileSize { impl From<TileSizeV1> for TileSize {
@ -100,6 +102,7 @@ impl From<TileSizeV1> for TileSize {
match item { match item {
TileSizeV1::Tile8 => TileSize::Tile8, TileSizeV1::Tile8 => TileSize::Tile8,
TileSizeV1::Tile16 => TileSize::Tile16, TileSizeV1::Tile16 => TileSize::Tile16,
TileSizeV1::Tile32 => TileSize::Tile32,
} }
} }
} }

View file

@ -19,6 +19,7 @@ use colour::Colour;
pub(crate) enum TileSize { pub(crate) enum TileSize {
Tile8, Tile8,
Tile16, Tile16,
Tile32,
} }
impl TileSize { impl TileSize {
@ -26,6 +27,7 @@ impl TileSize {
match self { match self {
TileSize::Tile8 => 8, TileSize::Tile8 => 8,
TileSize::Tile16 => 16, TileSize::Tile16 => 16,
TileSize::Tile32 => 32,
} }
} }
} }