AEApplication.h 905 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  2. // Please see LICENSE.md in repository root for license information
  3. // https://github.com/AtomicGameEngine/AtomicGameEngine
  4. #pragma once
  5. #include <Atomic/Engine/Application.h>
  6. using namespace Atomic;
  7. namespace AtomicEditor
  8. {
  9. /// AtomicEditor application runs a script specified on the command line.
  10. class AEApplication : public Application
  11. {
  12. OBJECT(AEApplication);
  13. public:
  14. /// Construct.
  15. AEApplication(Context* context);
  16. /// Setup before engine initialization. Verify that a script file has been specified.
  17. virtual void Setup();
  18. /// Setup after engine initialization. Load the script and execute its start function.
  19. virtual void Start();
  20. /// Cleanup after the main loop. Run the script's stop function if it exists.
  21. virtual void Stop();
  22. private:
  23. String cmdLineProjectFile_;
  24. };
  25. }