This commit is contained in:
2023-11-27 21:24:43 +01:00
parent 677acf771a
commit ee1f11cd1f
4 changed files with 4 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ pub const LEVEL_WIDTH: usize = 50;
pub const LEVEL_HEIGHT: usize = 25;
#[derive(Copy, Clone, Debug, PartialEq)]
enum StructureElement {
pub enum StructureElement {
Wall,
Floor,
StairDown,
@@ -13,7 +13,7 @@ enum StructureElement {
Unknown,
}
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Debug, PartialEq)]
pub struct Level {
structure: [[StructureElement; LEVEL_HEIGHT]; LEVEL_WIDTH],
discovered: [[bool; LEVEL_HEIGHT]; LEVEL_WIDTH],