From 4c4b57dc24bc36b3091931c9dcc36f6b1894a017 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Fri, 27 Nov 2020 22:55:00 +0100 Subject: Change to f64 as the preferred floating point number --- src/map_data.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/map_data.rs') 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>, - polygons: Vec>, - walls: Vec<(Vec2, Vec2)>, + rooms: Vec>, + polygons: Vec>, + walls: Vec<(Vec2, Vec2)>, icons: Vec, } @@ -67,24 +67,24 @@ impl MapData { file.write_all(&string.as_bytes()) } - pub fn rooms(&self) -> &Vec> { + pub fn rooms(&self) -> &Vec> { &self.rooms } - pub fn rooms_mut(&mut self) -> &mut Vec> { + pub fn rooms_mut(&mut self) -> &mut Vec> { &mut self.rooms } - pub fn polygons(&self) -> &Vec> { + pub fn polygons(&self) -> &Vec> { &self.polygons } - pub fn polygons_mut(&mut self) -> &mut Vec> { + pub fn polygons_mut(&mut self) -> &mut Vec> { &mut self.polygons } - pub fn walls(&self) -> &Vec<(Vec2, Vec2)> { + pub fn walls(&self) -> &Vec<(Vec2, Vec2)> { &self.walls } - pub fn walls_mut(&mut self) -> &mut Vec<(Vec2, Vec2)> { + pub fn walls_mut(&mut self) -> &mut Vec<(Vec2, Vec2)> { &mut self.walls } -- cgit v1.2.3-70-g09d2