aboutsummaryrefslogtreecommitdiff
path: root/src/world.rs
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2019-11-19 04:23:13 +0000
committerGuillaume Pasquet <dev@etenil.net>2019-11-19 04:23:13 +0000
commit591e0dad70e8aa9514039f9193dfcd57d6334a7f (patch)
tree2982efd75f58f1d309a08d49058087d6537c9fb6 /src/world.rs
parent0a3b3bf177d54c68a22f061a7087d20d19488bba (diff)
Ensure privacy is private
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 {