|
RpgGame
Console Based RPG game in C#
|
Defines the contract for procedural level generation strategies. More...
Public Member Functions | |
| Task | GenerateAsync (Level level) |
| Asynchronously generates the terrain layout for the specified level. | |
Defines the contract for procedural level generation strategies.
Implementations of this interface are responsible for constructing the terrain layout of a Level instance.
This abstraction enables the use of the Strategy Pattern, allowing different generation algorithms (e.g., simple rooms, mazes, dungeon layouts) to be swapped without modifying the game logic.
| Task RpgGame.Generation.IMapGenerator.GenerateAsync | ( | Level | level | ) |
Asynchronously generates the terrain layout for the specified level.
| level | The level instance to populate. |
Implementations should perform all work asynchronously; callers may await the returned task to remain responsive during map creation.
Implemented in RpgGame.Generation.DungeonBuilder, and RpgGame.Generation.SimpleRoomGenerator.