X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fserver%2FServer.hpp;h=f81c9cea205b4918edfbb26e4da3c1357402baa4;hb=ce10bfbe252d5598bbb559c6ce55aed1b9393227;hp=40905c8ff7943b1fb4824a6b9830d436c2a8dbc0;hpb=fae1305b5783ce7a59ab1d4f44e199bd2bda1f45;p=blank.git diff --git a/src/server/Server.hpp b/src/server/Server.hpp index 40905c8..f81c9ce 100644 --- a/src/server/Server.hpp +++ b/src/server/Server.hpp @@ -7,6 +7,7 @@ #include "../world/WorldManipulator.hpp" #include +#include #include #include @@ -14,6 +15,8 @@ namespace blank { class ChunkIndex; +class CLIContext; +class CommandService; class Model; class Player; class WorldSave; @@ -52,7 +55,7 @@ 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 &); + void DispatchMessage(CLIContext &, const std::string &); /// send message to all connected clients void DistributeMessage(std::uint8_t type, std::uint32_t ref, const std::string &msg); @@ -76,6 +79,7 @@ private: const Model *player_model; CLI cli; + std::unique_ptr cmd_srv; };