make stuff public

This commit is contained in:
Joachim Lusiardi 2023-12-05 17:13:39 +01:00
parent aa3fa6efb1
commit 21a292b7ad
1 changed files with 7 additions and 7 deletions

View File

@ -18,15 +18,15 @@ pub enum StructureElement {
}
pub struct Level {
level: usize,
structure: [[StructureElement; LEVEL_HEIGHT]; LEVEL_WIDTH],
discovered: [[bool; LEVEL_HEIGHT]; LEVEL_WIDTH],
monsters: Vec<Monster>,
artifacts: Vec<Box<dyn Artifact>>,
pub(crate) level: usize,
pub(crate) structure: [[StructureElement; LEVEL_HEIGHT]; LEVEL_WIDTH],
pub(crate) discovered: [[bool; LEVEL_HEIGHT]; LEVEL_WIDTH],
pub(crate) monsters: Vec<Monster>,
pub(crate) artifacts: Vec<Box<dyn Artifact>>,
/// the position of the start in the level (eiter stair up or start point)
start: (usize, usize),
pub(crate) start: (usize, usize),
/// the position of the end in the level (eiter stair down or end point)
end: (usize, usize),
pub(crate) end: (usize, usize),
}
impl Level {