Add getter for index.
This commit is contained in:
parent
e50c26356e
commit
96720c5662
|
@ -53,6 +53,10 @@ impl Tile {
|
|||
pub fn is_blocked(&self) -> bool {
|
||||
self.is_blocked
|
||||
}
|
||||
|
||||
pub fn index(&self) -> usize {
|
||||
self.index
|
||||
}
|
||||
}
|
||||
|
||||
impl Map {
|
||||
|
|
Loading…
Reference in New Issue
Block a user