summaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-07-07 11:45:49 -0500
committertom barrett <spalf0@gmail.com>2019-07-07 11:45:49 -0500
commitde4e8c1f0b82627fd1980401ae63472f49c9d89c (patch)
treebcbffde08ac2e5bf843abee0dc61c2d7e20fd03b /src/map.rs
parentbfdaef7850b6ac17bb88f1b314236fb5014aac8e (diff)
reorganized
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map.rs b/src/map.rs
index 7042f58..8ef6f4e 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -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));
}
}
}