Skip to main content

Module dungeon

Module dungeon 

Source
Expand description

Dungeon generation — BSP, cellular automata, WFC, room placement, maze algorithms.

This module provides multiple dungeon-generation strategies plus shared graph utilities (BFS shortest-path, Kruskal MST, connected-components). All generators consume a super::Rng so results are fully deterministic from a seed.

Structs§

BspSplitter
CellularDungeon
Corridor
A corridor connecting two rooms.
DungeonDecorator
DungeonFloor
DungeonGraph
A graph of rooms and corridors.
FloorMetrics
IRect
Axis-aligned integer rectangle in tile space.
MazeCell
MazeGenerator
PlacedObject
Room
A room in the dungeon with spatial bounds and graph connections.
RoomPlacer
WfcDungeon
WfcTile

Enums§

DungeonTheme
Visual theme for a dungeon floor.
ObjectKind
RoomType
Type/purpose of a room.
Tile
Tile type in the dungeon grid.