aboutsummaryrefslogtreecommitdiff
path: root/src/map_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map_data.rs')
-rw-r--r--src/map_data.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map_data.rs b/src/map_data.rs
index fa3a389..8d0d926 100644
--- a/src/map_data.rs
+++ b/src/map_data.rs
@@ -1,4 +1,5 @@
use crate::math::{Rect, Vec2};
+use crate::tool::icon_tool::IconInfo;
use ron::de::from_reader;
use ron::ser::{to_string_pretty, PrettyConfig};
use serde::{Deserialize, Serialize};
@@ -13,7 +14,7 @@ use std::path::Path;
pub struct MapData {
rooms: Vec<Rect<f32>>,
walls: Vec<(Vec2<f32>, Vec2<f32>)>,
- icons: Vec<(usize, Vec2<f32>)>,
+ icons: Vec<IconInfo>,
}
impl MapData {
@@ -76,10 +77,10 @@ impl MapData {
&mut self.walls
}
- pub fn icons(&self) -> &Vec<(usize, Vec2<f32>)> {
+ pub fn icons(&self) -> &Vec<IconInfo> {
&self.icons
}
- pub fn icons_mut(&mut self) -> &mut Vec<(usize, Vec2<f32>)> {
+ pub fn icons_mut(&mut self) -> &mut Vec<IconInfo> {
&mut self.icons
}
}