diff options
author | tom barrett <spalf0@gmail.com> | 2019-07-07 11:45:49 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-07-07 11:45:49 -0500 |
commit | de4e8c1f0b82627fd1980401ae63472f49c9d89c (patch) | |
tree | bcbffde08ac2e5bf843abee0dc61c2d7e20fd03b /src/map.rs | |
parent | bfdaef7850b6ac17bb88f1b314236fb5014aac8e (diff) |
reorganized
Diffstat (limited to 'src/map.rs')
-rw-r--r-- | src/map.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,7 +7,8 @@ use xml::reader::XmlEvent::Characters; use crate::constants; use crate::entity::Operable; use crate::layer::Layer; -use crate::tileset::{Tile, Tileset}; +use crate::tile::Tile; +use crate::tileset::Tileset; use crate::xmlelements::XMLElements; #[derive(Clone)] @@ -79,7 +80,8 @@ impl Map { for cell in layer.cells.iter() { for (id, tile) in spawn_tiles.iter() { if id == &cell.id { - spawn_points.push((tile.property.spawn.clone().unwrap(), cell.destination)); + spawn_points + .push((tile.properties.spawn.clone().unwrap(), cell.destination)); } } } |