pub fn remap(&mut self, asset: &mut Asset) {
        let mut tiles : HashMap<(isize, isize), (usize, usize, usize, TileUsage)> = HashMap::new();
        let ids: Vec<&(isize, isize)> = self.data.layer1.keys().collect();
        for id in &ids {
            let value = &self.data.layer1[id];
            let tile = asset.get_tile(&(value.0, value.1, value.2));

            tiles.insert(**id, (value.0, value.1, value.2, tile.usage));
        }
        self.data.layer1 = tiles;
        self.save_data();
    }
/// Remaps the TileUsage field of the tiles
Remaps the TileUsage field of the tiles
Remaps the TileUsage field of the tiles
pub fn remap(&mut self, asset: &mut Asset) {
        let mut tiles : HashMap<(isize, isize), (usize, usize, usize, TileUsage)> = HashMap::new();
        let ids: Vec<&(isize, isize)> = self.data.layer1.keys().collect();
        for id in &ids {
            let value = &self.data.layer1[id];
            let tile = asset.get_tile(&(value.0, value.1, value.2));
            tiles.insert(**id, (value.0, value.1, value.2, tile.usage));
        }
        self.data.layer1 = tiles;
        self.save_data();
    }
pub fn remap ( & mut self , asset : & mut Asset ) { let mut tiles : HashMap < ( isize , isize ) , ( usize , usize , usize , TileUsage ) > = HashMap :: new ( ) ; let ids : Vec < & ( isize , isize ) > = self . data . layer1 . keys ( ) . collect ( ) ; for id in & ids { let value = & self . data . layer1 [ id ] ; let tile = asset . get_tile ( & ( value . 0 , value . 1 , value . 2 ) ) ; tiles . insert ( * * id , ( value . 0 , value . 1 , value . 2 , tile . usage ) ) ; } self . data . layer1 = tiles ; self . save_data ( ) ; }
Remaps the TileUsage field of the tiles
Remaps the TileUsage field of the tiles
&mut self
asset
&mut Asset
&mut self
asset
&mut Asset