From 192e065e060adf08c3361d299e7bc1df8439b867 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 1 Jul 2020 16:23:41 +0100 Subject: [PATCH] todo --- src/game.rs | 3 +++ 1 file changed, 3 insertions(+) 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();