🎉 Improve tile shapes iteration

This commit is contained in:
Alejandro Alonso 2025-03-20 10:21:03 +01:00
parent 2d61644b05
commit 9ea3c54b92
2 changed files with 21 additions and 19 deletions

View file

@ -60,10 +60,6 @@ impl TileHashMap {
}
}
pub fn has_shapes_at(&mut self, tile: Tile) -> bool {
return self.grid.contains_key(&tile);
}
pub fn get_shapes_at(&mut self, tile: Tile) -> Option<&IndexSet<Uuid>> {
return self.grid.get(&tile);
}