diff options
| author | Max Pernklau | 2020-11-29 21:28:39 +0100 |
|---|---|---|
| committer | GitHub | 2020-11-29 21:28:39 +0100 |
| commit | 4f2eab931bed0ec86c6136e365ad3a1b3b8c4e87 (patch) | |
| tree | 010339f867d90c2c6293ddd16c4151ec220c7b8e /src/map_data.rs | |
| parent | 4d3ee44eb4892bd454a1289f7fed308f82ec6a3b (diff) | |
| parent | 90db142588e1b78250dc9b266bae359cf9e22721 (diff) | |
| download | graf_karto-4f2eab931bed0ec86c6136e365ad3a1b3b8c4e87.tar.gz graf_karto-4f2eab931bed0ec86c6136e365ad3a1b3b8c4e87.zip | |
Merge branch 'master' into wall-join
Diffstat (limited to 'src/map_data.rs')
| -rw-r--r-- | src/map_data.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map_data.rs b/src/map_data.rs index b17d779..a6ce5a0 100644 --- a/src/map_data.rs +++ b/src/map_data.rs @@ -12,9 +12,9 @@ use std::path::Path; /// transform, or the zoom-level #[derive(Serialize, Deserialize)] pub struct MapData { - rooms: Vec<Rect<f32>>, - polygons: Vec<Polygon<f32>>, - walls: Vec<(Vec2<f32>, Vec2<f32>)>, + rooms: Vec<Rect<f64>>, + polygons: Vec<Polygon<f64>>, + walls: Vec<(Vec2<f64>, Vec2<f64>)>, icons: Vec<IconInfo>, } @@ -67,24 +67,24 @@ impl MapData { file.write_all(&string.as_bytes()) } - pub fn rooms(&self) -> &Vec<Rect<f32>> { + pub fn rooms(&self) -> &Vec<Rect<f64>> { &self.rooms } - pub fn rooms_mut(&mut self) -> &mut Vec<Rect<f32>> { + pub fn rooms_mut(&mut self) -> &mut Vec<Rect<f64>> { &mut self.rooms } - pub fn polygons(&self) -> &Vec<Polygon<f32>> { + pub fn polygons(&self) -> &Vec<Polygon<f64>> { &self.polygons } - pub fn polygons_mut(&mut self) -> &mut Vec<Polygon<f32>> { + pub fn polygons_mut(&mut self) -> &mut Vec<Polygon<f64>> { &mut self.polygons } - pub fn walls(&self) -> &Vec<(Vec2<f32>, Vec2<f32>)> { + pub fn walls(&self) -> &Vec<(Vec2<f64>, Vec2<f64>)> { &self.walls } - pub fn walls_mut(&mut self) -> &mut Vec<(Vec2<f32>, Vec2<f32>)> { + pub fn walls_mut(&mut self) -> &mut Vec<(Vec2<f64>, Vec2<f64>)> { &mut self.walls } |
