Can I create a level and edit it purely through C++?

Hi guys.

The title says it all. Can a level be created and edited entirely in code?

Thank you in advance.

The only limitation is your own imagination & programming skill, question is why would you do that?

^ This. You can do it, but you’d be mental to do something so counter-intuitive when we have all those nice, refined, artist-friendly tools.