A Database-Driven Framework for 3D Level Generation with LLMs