I'm looking in to developing a game editor - essentially a level editor for my game but a little more advanced i.e edit menus and loading screens and what not.
So far, I have come up with a data-driven model as the basis for this, with information possibly being stored in a binary format/xml. I could then have the actual game load up scenes based on this information (main menu, level select, loading, level1 etc).
My main problem at the moment is how to handle my game logic. How can I link together level/scene logic that I'll want to add - for instance if I want the user to answer a question - with all the data I've got stored for the scene (background/terrain sprites, enemies etc)?
My game code will currently consist of classes for a scene, npc, other objects etc + the loading code for loading scenes, but not too much else.
To summarise, given the described architecture of my game, how can I appropriately handle my game logic? Furthermore - is a similar pattern to what I'm trying to do used in industry? If not - how exactly is the editing/construction of menus/scenes handled?