X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fclient%2FInteractiveState.hpp;h=d5fd4a1859fb3c8b188e7f03bed58023ceff0c49;hb=c256dca7c6ca2c7f8eeffae53c02fe62bd892198;hp=dc84199c6be49025b35fe42a1feb1e6248d5bd8d;hpb=1d225566f79566e2dbbad8cb2876696f4c074ff5;p=blank.git diff --git a/src/client/InteractiveState.hpp b/src/client/InteractiveState.hpp index dc84199..d5fd4a1 100644 --- a/src/client/InteractiveState.hpp +++ b/src/client/InteractiveState.hpp @@ -6,12 +6,12 @@ #include "ChunkReceiver.hpp" #include "NetworkedInput.hpp" -#include "../app/ChatState.hpp" #include "../app/IntervalTimer.hpp" #include "../audio/SoundBank.hpp" #include "../graphics/SkyBox.hpp" #include "../io/WorldSave.hpp" #include "../net/Packet.hpp" +#include "../shared/ChatState.hpp" #include "../shared/WorldResources.hpp" #include "../ui/HUD.hpp" #include "../ui/InteractiveManipulator.hpp" @@ -43,7 +43,11 @@ public: PlayerController &GetPlayerController() noexcept { return input; } ChunkReceiver &GetChunkReceiver() noexcept { return chunk_receiver; } - void OnEnter() override; + void OnResume() override; + void OnPause() override; + + void OnFocus() override; + void OnBlur() override; void Handle(const SDL_Event &) override; void Update(int dt) override; @@ -84,7 +88,7 @@ private: Interface interface; ChunkReceiver chunk_receiver; ChunkRenderer chunk_renderer; - IntervalTimer loop_timer; + CoarseTimer loop_timer; SkyBox sky;