diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-09 15:06:32 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-09 15:06:32 -0500 |
| commit | 25b330efe117f61ddde038c71b34a2f579f78af6 (patch) | |
| tree | c4345e9cc8125ce726dbd96e378963110c89088f /dungeon/src | |
| parent | graphics: remove unused vars (diff) | |
| download | DungeonCrawl-25b330efe117f61ddde038c71b34a2f579f78af6.tar.gz DungeonCrawl-25b330efe117f61ddde038c71b34a2f579f78af6.tar.bz2 DungeonCrawl-25b330efe117f61ddde038c71b34a2f579f78af6.zip | |
minor changes
Diffstat (limited to 'dungeon/src')
| -rw-r--r-- | dungeon/src/bsp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dungeon/src/bsp.rs b/dungeon/src/bsp.rs index 4c72389..5800d8d 100644 --- a/dungeon/src/bsp.rs +++ b/dungeon/src/bsp.rs @@ -17,7 +17,7 @@ const MAX_ROOM_SIZE: usize = 12; /// The `Rect` type represents a rectangle inside the map (x,y,width,height). /// (x,y) is the top-left corner. #[derive(Debug, Clone, Copy)] -pub(crate) struct Rect { +struct Rect { x: usize, y: usize, w: usize, @@ -40,7 +40,7 @@ impl Rect { /// The `Node` type represents a node in the BSP tree. /// Has optional left and right children, and an optional room rectangle. #[derive(Debug)] -pub(crate) struct Node { +struct Node { rect: Rect, // Area this node covers left: Option<Box<Node>>, // Left child (if not leaf) right: Option<Box<Node>>, // Right child (if not leaf) |