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

Generates a simple room-based level layout with borders, random wall clusters, and predefined item spawns. More...

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

Public Member Functions

async Task GenerateAsync (Level level)
 Asynchronously generates the level; uses the new async spawn helpers to perform item placement without blocking the caller.
 

Detailed Description

Generates a simple room-based level layout with borders, random wall clusters, and predefined item spawns.

The generated level consists of:

  • A fully walkable floor.
  • Solid border walls enclosing the map.
  • Random rectangular wall clusters as obstacles.
  • Randomly placed coins and weapons.

This generator is intended as a basic implementation of IMapGenerator and demonstrates procedural level creation using randomized placement.

Member Function Documentation

◆ GenerateAsync()

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

Asynchronously generates the level; uses the new async spawn helpers to perform item placement without blocking the caller.

Parameters
levelLevel instance to populate.

Implements RpgGame.Generation.IMapGenerator.

Here is the call graph for this function:

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