diff options
Diffstat (limited to 'src/layer.rs')
-rw-r--r-- | src/layer.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layer.rs b/src/layer.rs index c9f32e8..ae645fb 100644 --- a/src/layer.rs +++ b/src/layer.rs @@ -3,10 +3,11 @@ use ggez::graphics::spritebatch::SpriteBatch; use crate::tile::Tile; use crate::tileset::Tileset; +#[derive(Debug, Clone)] pub struct Layer { pub tiles: Vec<Tile>, - pub width: usize, - pub height: usize, + width: usize, + height: usize, } impl Layer { |