RpgGame
Console Based RPG game in C#
Loading...
Searching...
No Matches
RpgGame.Generation.DungeonBuilder Class Reference

Implements the Builder Pattern to compose multiple dungeon generation procedures. More...

Inheritance diagram for RpgGame.Generation.DungeonBuilder:
Collaboration diagram for RpgGame.Generation.DungeonBuilder:

Public Member Functions

DungeonBuilder Add (IDungeonProcedure procedure)
 Adds a generation procedure to the sequence.
 
async Task GenerateAsync (Level level)
 Asynchronously generates a dungeon by applying all registered procedures in sequence.
 

Detailed Description

Implements the Builder Pattern to compose multiple dungeon generation procedures.

This class orchestrates a sequence of IDungeonProcedure implementations, allowing complex dungeon layouts to be built by chaining individual generation steps.

Member Function Documentation

◆ Add()

DungeonBuilder RpgGame.Generation.DungeonBuilder.Add ( IDungeonProcedure  procedure)
inline

Adds a generation procedure to the sequence.

Parameters
procedureThe procedure to add.
Returns
This builder instance for method chaining.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateAsync()

async Task RpgGame.Generation.DungeonBuilder.GenerateAsync ( Level  level)
inline

Asynchronously generates a dungeon by applying all registered procedures in sequence.

Parameters
levelThe level instance to populate.
Returns
A task that completes when all procedures have been applied.

Implements RpgGame.Generation.IMapGenerator.


The documentation for this class was generated from the following file: