RpgGame
Console Based RPG game in C#
Loading...
Searching...
No Matches
RpgGame.Generation.IDungeonProcedure Interface Reference

Defines a procedural step in dungeon generation. More...

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

Public Member Functions

Task ApplyAsync (Level level, DungeonContext context)
 Asynchronously applies this generation step to the level.
 

Detailed Description

Defines a procedural step in dungeon generation.

Implementations of this interface represent individual aspects of dungeon creation, such as carving rooms, creating paths, or placing items. Multiple procedures can be composed together via DungeonBuilder to create complex dungeons.

Member Function Documentation

◆ ApplyAsync()

Task RpgGame.Generation.IDungeonProcedure.ApplyAsync ( Level  level,
DungeonContext  context 
)

Asynchronously applies this generation step to the level.

Parameters
levelThe level being generated.
contextShared state for coordinating between procedures.
Returns
A task that completes when the procedure finishes.

Implemented in RpgGame.Generation.Procedures.CentralRoomProcedure, RpgGame.Generation.Procedures.ChambersProcedure, RpgGame.Generation.Procedures.EmptyDungeonProcedure, RpgGame.Generation.Procedures.FilledDungeonProcedure, RpgGame.Generation.Procedures.AddItemsProcedure, RpgGame.Generation.Procedures.PathsProcedure, and RpgGame.Generation.Procedures.AddWeaponsProcedure.


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