Merge pull request #37 from ndarilek/master

Add getter for index.
This commit is contained in:
Krzysztof Langner 2021-07-15 10:01:58 +02:00 committed by GitHub
commit 363b90cde9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {