EngineRuntimeData.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #ifndef LS_ATLANTIS_ENGINE_CYCLE_ENGINE_RUNTIME_DATA_HPP
  6. #define LS_ATLANTIS_ENGINE_CYCLE_ENGINE_RUNTIME_DATA_HPP
  7. #include <Export.hpp>
  8. #include <interface/IKeyboard.hpp>
  9. #include <interface/IWindowApi.hpp>
  10. #include <interface/IWindowApiEventManager.hpp>
  11. #include <memory>
  12. namespace ls::atlantis::cycle
  13. {
  14. class LS_ATLANTIS_DYNAMIC_GOAL EngineRuntimeData
  15. {
  16. public:
  17. EngineRuntimeData();
  18. ~EngineRuntimeData();
  19. [[nodiscard]] ::std::shared_ptr<ls::atlantis::interfaces::IKeyboard> getKeyboard() const;
  20. [[nodiscard]] bool getIsUp() const;
  21. [[nodiscard]] ::std::shared_ptr<ls::atlantis::interfaces::IWindowApi> getWindowApi() const;
  22. [[nodiscard]] ::std::shared_ptr<ls::atlantis::interfaces::IWindowApiEventManager> getWindowApiEventManager() const;
  23. void setIsUp(bool _isUp);
  24. void setKeyboard(const ::std::shared_ptr<ls::atlantis::interfaces::IKeyboard> &_keyboard);
  25. void setWindowApi(const ::std::shared_ptr<ls::atlantis::interfaces::IWindowApi> &_windowApi);
  26. void setWindowApiEventManager(const ::std::shared_ptr<ls::atlantis::interfaces::IWindowApiEventManager> &_windowApiEventManager);
  27. private:
  28. bool isUp{};
  29. ::std::shared_ptr<ls::atlantis::interfaces::IKeyboard> keyboard{};
  30. ::std::shared_ptr<ls::atlantis::interfaces::IWindowApi> windowApi{};
  31. ::std::shared_ptr<ls::atlantis::interfaces::IWindowApiEventManager> windowApiEventManager{};
  32. };
  33. }
  34. #endif