make stuff public
This commit is contained in:
parent
aa3fa6efb1
commit
21a292b7ad
14
src/level.rs
14
src/level.rs
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue