Skip to content

main_editor refactor

mag requested to merge (removed):main_editor_refactor into master
  • Refactored main_editor.py to be more modular.
    • LevelEditor and GlobalEditor are now separate editors, that are hosted in the MainEditor
    • All interdependency between the three have been removed
    • separated game-launch, save functionality into different classes
    • moved dock, menubar to separate wrapper classes
  • Added EditorState broadcast system
    • This removes the requirement for each editor to have pointers to other editors in order to access information such as current level.

Why?

  • In preparation for future editors (overworld), which will be hosted in MainEditor
  • to reduce code complexity, making extensibility of all editors better

Merge request reports