I'm not sure if I understand what you're trying to do, but here's how I'd make a tile-based dungeon generation system:
- Store the two location boundaries of every structure in a list (kind of like how you'd select them using WorldEdit.)
- Associate a block with every single different tile you...