X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FMasterState.hpp;h=173c07cdd1e8208dd5939efb9b5842311a449650;hb=f21a21b285c5b54e3abcc757c6715d22520dd190;hp=97834e6371db843f003fe5dbee5326a45452366c;hpb=07b8335e7bfd631e0878e183c87238812d632c56;p=blank.git diff --git a/src/standalone/MasterState.hpp b/src/standalone/MasterState.hpp index 97834e6..173c07c 100644 --- a/src/standalone/MasterState.hpp +++ b/src/standalone/MasterState.hpp @@ -7,6 +7,7 @@ #include "PreloadState.hpp" #include "UnloadState.hpp" #include "../ai/Spawner.hpp" +#include "../app/ChatState.hpp" #include "../audio/SoundBank.hpp" #include "../graphics/SkyBox.hpp" #include "../shared/WorldResources.hpp" @@ -31,7 +32,8 @@ namespace standalone { class MasterState : public State -, public ClientController { +, public ClientController +, public ChatState::Responder { public: MasterState( @@ -59,6 +61,8 @@ public: void SetDebug(bool) override; void Exit() override; + void OnLineSubmit(const std::string &) override; + private: Config &config; Environment &env; @@ -82,6 +86,7 @@ private: PreloadState preload; UnloadState unload; + ChatState chat; };