From 54eac2384f2d449289dc0b91e9ec8538fe9d3847 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 25 Oct 2025 15:20:19 -0400 Subject: graphics: use atlas texture when rendering (and lots of refactoring) --- dungeon/src/map.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dungeon') diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs index 24378a5..d185547 100644 --- a/dungeon/src/map.rs +++ b/dungeon/src/map.rs @@ -37,6 +37,11 @@ impl Tile { pub fn values() -> impl Iterator { Self::iter() } + + /// Returns if the tile is a wall + pub fn is_wall(self) -> bool { + self == Self::Wall + } } impl Default for Tile { fn default() -> Self { -- cgit v1.2.3-freya