From 21a292b7ad2099ae43fe80a51e6bb60e2e06acbd Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Tue, 5 Dec 2023 17:13:39 +0100 Subject: [PATCH] make stuff public --- src/level.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/level.rs b/src/level.rs index d4af42f..80dea11 100644 --- a/src/level.rs +++ b/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, - artifacts: Vec>, + pub(crate) level: usize, + pub(crate) structure: [[StructureElement; LEVEL_HEIGHT]; LEVEL_WIDTH], + pub(crate) discovered: [[bool; LEVEL_HEIGHT]; LEVEL_WIDTH], + pub(crate) monsters: Vec, + pub(crate) artifacts: Vec>, /// 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 {