NETRunApp.h 969 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Engine/Application.h>
  9. namespace Atomic
  10. {
  11. class NETRunApp : public Application
  12. {
  13. OBJECT(NETRunApp);
  14. public:
  15. NETRunApp(Context* context);
  16. virtual ~NETRunApp();
  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. void ErrorExit(const String& message = String::EMPTY);
  24. private:
  25. String assemblyToExecute_;
  26. Vector<String> assemblyArgs_;
  27. };
  28. }