summaryrefslogtreecommitdiff
path: root/dungeon/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon/src/map.rs')
-rw-r--r--dungeon/src/map.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs
index cb602e8..bb83ba9 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -6,8 +6,11 @@ use crate::pos::{Direction, Pos};
/// `MAP_SIZE` is the size of the size of the dungeon grid.
pub const MAP_SIZE: u16 = 100;
+/// `MAP_SIZE` as a usize
+pub const MAP_SIZE_USIZE: usize = MAP_SIZE as usize;
+
/// The number of tiles in the dungeon grid
-pub const TILE_COUNT: usize = MAP_SIZE as usize * MAP_SIZE as usize;
+pub const TILE_COUNT: usize = MAP_SIZE_USIZE * MAP_SIZE_USIZE;
/// The `EntityKind` represents what kind of entity this is.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]