diff --git a/src/game.rs b/src/game.rs index 85261fa..5b1889c 100644 --- a/src/game.rs +++ b/src/game.rs @@ -774,6 +774,9 @@ impl Game { new_id } + /// todo I think I need a generic `dedupe(&mut self, Vec)` function + /// it would have to take a closure for comparing a given T (see the background_tile below) + /// and a closure for what to do with the changed IDs pub fn dedupe_tiles(&mut self) { let mut tiles_temp = self.tiles.clone(); let mut unique_tiles: Vec = Vec::new();