Expand description

The dungeon generation as a collection of traits with two implementations.

  • The game’s implementation (game_builtin). Limited in flexibility. Works on the current global dungeon struct directly. Some parameters do not work as advertised since the game is hardcoded to expect some values (probably compiler / linker optimizations).

    To get an instance of the game’s implementation, use super::GlobalDungeonData::get_builtin_dungeon_generator.

  • A reimplementation (reimplementation). Incomplete but hopefully more flexible and expandable/modular in the long term.

The generator modules may expose some more specific generation logic to them, but in general it is recommended to work with the DungeonFloorGeneration and related traits instead of implementation-specific code.

Modules

Traits

Type Definitions

  • A generation cell in the dungeon grid. This is a temporary artifact used during generation, it clusters the grid of dungeon tiles into multiple areas.