diff options
| author | Arne Dußin | 2021-01-06 21:32:48 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-01-06 21:32:48 +0100 |
| commit | 61d255a420c9d977b46670e7fa9e7735d2acf819 (patch) | |
| tree | d1cf79fec1b643814568544c3691e25564ae874a /src/map/mod.rs | |
| parent | 9b5762cf3716503819e2cf06f3c335bbfd3b0a3c (diff) | |
| download | graf_karto-61d255a420c9d977b46670e7fa9e7735d2acf819.tar.gz graf_karto-61d255a420c9d977b46670e7fa9e7735d2acf819.zip | |
Add CLI with save feature
Diffstat (limited to 'src/map/mod.rs')
| -rw-r--r-- | src/map/mod.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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<RectRoom> { + &self.rect_rooms + } + + pub fn polygon_rooms(&self) -> &Vec<PolygonRoom> { + &self.polygon_rooms + } + + pub fn walls(&self) -> &Vec<Wall> { + &self.walls + } + + pub fn icons(&self) -> &Vec<Icon> { + &self.icons + } } |
