
Map Generator
The map generator for my roguelike is pretty simple: I use a Dictionary as a blackboard, and read / assign values to it with a lit of Resources. The Resources can be as granular as needed for each design, but are always reusable.

The simple Mystery Dungeon example generator I have is the following list:
- initialize: sets the map size
- BSP: runs the Binary Space Partition step to split up the whole map into some set of squares

- Shrink Rects: Takes the list of BSP Rects and shrinks them according to some properties

- Connect Rects: Takes the shrunk rects and connects them. (I noticed this was not seeded properly while writing this post - woops!)

here's what the (serializable!) data looks like for this map generator






