|
RpgGame
Console Based RPG game in C#
|
Generates a central room in the dungeon. More...
Public Member Functions | |
| CentralRoomProcedure (int width, int height) | |
| Initializes a central room procedure. | |
| Task | ApplyAsync (Level level, DungeonContext context) |
| Applies the central room generation to the level. | |
Generates a central room in the dungeon.
This procedure carves out a single rectangular room positioned at the center of the level. The room is carved out as floor tiles, and its bounds are registered in the context for later use by other procedures (e.g., path generation).
|
inline |
Initializes a central room procedure.
| width | The width of the central room in tiles. |
| height | The height of the central room in tiles. |
|
inline |
Applies the central room generation to the level.
| level | The level being generated. |
| context | Shared generation state. |
Implements RpgGame.Generation.IDungeonProcedure.