Create a level in C++ at Edit time. Where?

Still waiting for an answer,
please tell me the class to derive from, when I want to do things BEFORE play starts. GameMode doesn’t help here. Thank you for your time.