Enum eos_rs::api::dungeon_mode::dungeon_generator::game_builtin::BuiltinDungeonLayoutGenerators
source · pub enum BuiltinDungeonLayoutGenerators {
Standard {
width: i32,
height: i32,
},
OuterRing,
Crossroads,
Line,
Cross,
Beetle,
OuterRooms {
width: i32,
height: i32,
},
TwoRoomsMonsterHouse,
OneRoomMonsterHouse,
}
Expand description
Builtin layout generators.
Variants§
Standard
Broadly speaking, a standard floor is generated as follows:
- Generating the grid
- Creating a room or hallway anchor in each grid cell
- Creating hallways between grid cells
- Generating special features (maze room, Kecleon shop, Monster House, extra hallways, room imperfections, secondary structures)
OuterRing
Floor layout with a 4x2 grid of rooms, surrounded by an outer ring of hallways.
Crossroads
Floor layout with a mesh of hallways on the interior 3x2 grid, surrounded by a boundary of rooms protruding from the interior like spikes, excluding the corner cells.
Line
Floor layout with 5 grid cells in a horizontal line.
Cross
Floor layout with 5 rooms arranged in a cross (“plus sign”) formation.
Beetle
Floor layout in a “beetle” formation, which is created by taking a 3x3 grid of rooms, connecting the rooms within each row, and merging the central column into one big room.
OuterRooms
Floor layout with a ring of rooms on the grid boundary and nothing in the interior.
Note that this is bugged, and won’t properly connect all the rooms together for
width < 4
.
TwoRoomsMonsterHouse
Floor layout with two rooms (left and right), one of which is a Monster House.
OneRoomMonsterHouse
Floor layout with just a large, one-room Monster House.
This is the default layout if dungeon generation fails.
Trait Implementations§
source§impl Clone for BuiltinDungeonLayoutGenerators
impl Clone for BuiltinDungeonLayoutGenerators
source§fn clone(&self) -> BuiltinDungeonLayoutGenerators
fn clone(&self) -> BuiltinDungeonLayoutGenerators
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more