Module eos_rs::api::dungeon_mode::dungeon_generator
source · 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
- The game’s built-in dungeon generator.
- Reimplementation of the dungeon generator.
Traits
- Generator for entities on a dungeon floor.
- High-level trait for generating new dungeons and replacing the current global dungeon.
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.