]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/MasterState.hpp
fix client's player entity ID
[blank.git] / src / standalone / MasterState.hpp
index f72c38ceed7b73f83059b3e1249c4da46f4c42f9..173c07cdd1e8208dd5939efb9b5842311a449650 100644 (file)
@@ -7,14 +7,14 @@
 #include "PreloadState.hpp"
 #include "UnloadState.hpp"
 #include "../ai/Spawner.hpp"
+#include "../app/ChatState.hpp"
+#include "../audio/SoundBank.hpp"
 #include "../graphics/SkyBox.hpp"
-#include "../model/ModelRegistry.hpp"
-#include "../model/ShapeRegistry.hpp"
+#include "../shared/WorldResources.hpp"
 #include "../ui/DirectInput.hpp"
 #include "../ui/HUD.hpp"
 #include "../ui/InteractiveManipulator.hpp"
 #include "../ui/Interface.hpp"
-#include "../world/BlockTypeRegistry.hpp"
 #include "../world/ChunkIndex.hpp"
 #include "../world/ChunkLoader.hpp"
 #include "../world/ChunkRenderer.hpp"
@@ -32,7 +32,8 @@ namespace standalone {
 
 class MasterState
 : public State
-, public ClientController {
+, public ClientController
+, public ChatState::Responder {
 
 public:
        MasterState(
@@ -60,12 +61,13 @@ public:
        void SetDebug(bool) override;
        void Exit() override;
 
+       void OnLineSubmit(const std::string &) override;
+
 private:
        Config &config;
        Environment &env;
-       ShapeRegistry shapes;
-       BlockTypeRegistry block_types;
-       ModelRegistry models;
+       WorldResources res;
+       SoundBank sounds;
        const WorldSave &save;
        World world;
        ChunkIndex &spawn_index;
@@ -84,6 +86,7 @@ private:
 
        PreloadState preload;
        UnloadState unload;
+       ChatState chat;
 
 };