From 61d255a420c9d977b46670e7fa9e7735d2acf819 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Wed, 6 Jan 2021 21:32:48 +0100 Subject: Add CLI with save feature --- src/map/mod.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/mod.rs') diff --git a/src/map/mod.rs b/src/map/mod.rs index 88a7e6c..28025ad 100644 --- a/src/map/mod.rs +++ b/src/map/mod.rs @@ -146,4 +146,20 @@ impl Map { .chain(self.walls.iter_mut().map(|w| w as &mut dyn Mappable)) .chain(self.icons.iter_mut().map(|i| i as &mut dyn Mappable)) } + + pub fn rect_rooms(&self) -> &Vec { + &self.rect_rooms + } + + pub fn polygon_rooms(&self) -> &Vec { + &self.polygon_rooms + } + + pub fn walls(&self) -> &Vec { + &self.walls + } + + pub fn icons(&self) -> &Vec { + &self.icons + } } -- cgit v1.2.3-70-g09d2