Add getter for index.

This commit is contained in:
Nolan Darilek 2021-07-13 12:17:51 -05:00
parent e50c26356e
commit 96720c5662

View File

@ -53,6 +53,10 @@ impl Tile {
pub fn is_blocked(&self) -> bool { pub fn is_blocked(&self) -> bool {
self.is_blocked self.is_blocked
} }
pub fn index(&self) -> usize {
self.index
}
} }
impl Map { impl Map {