X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fserver%2FServer.hpp;fp=src%2Fserver%2FServer.hpp;h=3bffafc29d2ada80307be32b5cab2269c49a6a65;hb=10a310869c61cc52046e165f36ac9639fe9d0c69;hp=683d36254c76523a6ba5afddd84c2607ae204292;hpb=69e4d6c0a86a27f9b3f1297e46c55b36059a24b9;p=blank.git diff --git a/src/server/Server.hpp b/src/server/Server.hpp index 683d362..3bffafc 100644 --- a/src/server/Server.hpp +++ b/src/server/Server.hpp @@ -2,6 +2,7 @@ #define BLANK_SERVER_SERVER_HPP #include "../app/Config.hpp" +#include "../shared/CLI.hpp" #include "../world/World.hpp" #include "../world/WorldManipulator.hpp" @@ -46,6 +47,9 @@ public: void SetBlock(Chunk &, int, const Block &) override; + /// for use by client connections when they receive a line from the player + void DispatchMessage(Player &, const std::string &); + /// send message to all connected clients void DistributeMessage(std::uint8_t type, std::uint32_t ref, const std::string &msg); @@ -66,6 +70,8 @@ private: const WorldSave &save; const Model *player_model; + CLI cli; + }; }