diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-10-28 17:58:53 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-10-28 17:58:53 +0100 |
commit | 5e833bba513d97c39f4e0d26b45a9095c32812a6 (patch) | |
tree | 57c2c6dfdb977a60425c4ca25d21e79fd5f02cf2 /mwe/events/include/loopManager.h | |
parent | f2136f836f9b9e9a6a6698f7bc6fba85a27ebebf (diff) |
button working
Diffstat (limited to 'mwe/events/include/loopManager.h')
-rw-r--r-- | mwe/events/include/loopManager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mwe/events/include/loopManager.h b/mwe/events/include/loopManager.h index baffb94..289ff0f 100644 --- a/mwe/events/include/loopManager.h +++ b/mwe/events/include/loopManager.h @@ -6,6 +6,10 @@ #include "eventHandler.h" #include "eventManager.h" #include "loopManager.h" +#include "uiRenderer.h" +#include "uiObject.h" +#include "inputSystem.h" +#include <memory> class LoopManager { public: LoopManager(); @@ -19,6 +23,7 @@ private: void lateUpdate(); void fixedUpdate(); void render(); + void onShutdown(const ShutDownEvent& e); bool gameRunning = false; WindowManager window; int timeScale = 1; @@ -26,4 +31,6 @@ private: double currentTime; double t = 0.0; double dt = 0.01; + std::unique_ptr<InputSystem> inputSystem; + EventHandler<ShutDownEvent> shutdownHandler; }; |