AEEditorCommon.h 701 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include <Atomic/Engine/Application.h>
  3. using namespace Atomic;
  4. namespace Atomic
  5. {
  6. class JSVM;
  7. }
  8. namespace AtomicEditor
  9. {
  10. class AEPreferences;
  11. class AEEditorCommon : public Application
  12. {
  13. OBJECT(AEEditorCommon);
  14. public:
  15. /// Construct.
  16. AEEditorCommon(Context* context);
  17. /// Setup before engine initialization. Verify that a script file has been specified.
  18. virtual void Setup();
  19. /// Setup after engine initialization. Load the script and execute its start function.
  20. virtual void Start();
  21. /// Cleanup after the main loop. Run the script's stop function if it exists.
  22. virtual void Stop();
  23. protected:
  24. SharedPtr<JSVM> vm_;
  25. private:
  26. };
  27. }