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

Generates corridors connecting all rooms to a central room. More...

Inheritance diagram for RpgGame.Generation.Procedures.PathsProcedure:
Collaboration diagram for RpgGame.Generation.Procedures.PathsProcedure:

Public Member Functions

Task ApplyAsync (Level level, DungeonContext context)
 Applies the corridor carving procedure to the level.
 

Detailed Description

Generates corridors connecting all rooms to a central room.

This procedure creates pathways from the central room to each additional room using a simple L-shaped corridor algorithm (horizontal then vertical movement).

Member Function Documentation

◆ ApplyAsync()

Task RpgGame.Generation.Procedures.PathsProcedure.ApplyAsync ( Level  level,
DungeonContext  context 
)
inline

Applies the corridor carving procedure to the level.

Parameters
levelThe level being generated.
contextShared generation state containing the rooms to connect.
Returns
A completed task.

Implements RpgGame.Generation.IDungeonProcedure.


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