I was thinking about code for that for top layer of my roguelike I am trying to make.
The dungeon part is working well (but still needs work).
I am planning to add a city part above ground - but my city code is not written yet so I am interested in this too
