aboutsummaryrefslogtreecommitdiff
path: root/src/world.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.rs')
-rw-r--r--src/world.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/world.rs b/src/world.rs
index 21d0d86..d8d44f9 100644
--- a/src/world.rs
+++ b/src/world.rs
@@ -221,8 +221,8 @@ pub struct Level {
}
pub struct Dungeon {
- pub xsize: usize,
- pub ysize: usize,
+ xsize: usize,
+ ysize: usize,
depth: usize,
pub levels: Vec<Level>,
}
@@ -253,6 +253,10 @@ impl Dungeon {
levels: vec![],
}
}
+
+ pub fn get_ysize(&self) -> usize {
+ self.ysize
+ }
}
impl Generatable for Dungeon {