Table of Contents

Class DungeonDefBuilder

Namespace
GrindFest.Editor.DungeonBuilding.Fluent
Assembly
GrindFest.dll

Top-level dungeon definition: ties a BuildPlanner (layout algorithm) to a roster of rooms with placement rules (counts, roles, weights).

Common usage:

Dungeon.Define("ChurchCrypt")
                        .Plan(PlanPresets.GridCorridors(roomCount: 6))
                        .Entrance(churchEntranceRoom)
                        .Use(ossuary).Count(2)
                        .Use(reliquary).Count(1).Role(Role.Center)
                        .Use(priestsTomb).Count(1).Role(Role.Endpoint)
                        .ConnectWith(stoneDoor)
                        .Save();
public sealed class DungeonDefBuilder
Inheritance
object
DungeonDefBuilder

Methods

Entrance(FieldSetup)

Mark a room as the entrance (forced placement, dungeon-start tag).

Plan(Action<BuildPlannerPreset>)

Configure the underlying BuildPlannerPreset (layout algorithm + params).

Raw(Action<BuildPlannerPreset>)

Raw escape hatch for the underlying BuildPlannerPreset.

Save()

Validate, compile to a BuildPlannerPreset asset, save to disk.

Use(FieldSetup)

Add a room to the dungeon's roster with optional placement constraints.