mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Add suuport for 32x32 tiles
This commit is contained in:
parent
6ed9b06b22
commit
ad82fe291f
|
@ -93,6 +93,8 @@ pub enum TileSizeV1 {
|
|||
Tile8,
|
||||
#[serde(rename = "16x16")]
|
||||
Tile16,
|
||||
#[serde(rename = "32x32")]
|
||||
Tile32,
|
||||
}
|
||||
|
||||
impl From<TileSizeV1> for TileSize {
|
||||
|
@ -100,6 +102,7 @@ impl From<TileSizeV1> for TileSize {
|
|||
match item {
|
||||
TileSizeV1::Tile8 => TileSize::Tile8,
|
||||
TileSizeV1::Tile16 => TileSize::Tile16,
|
||||
TileSizeV1::Tile32 => TileSize::Tile32,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue