X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fserver%2FServer.hpp;fp=src%2Fserver%2FServer.hpp;h=1a4c0b4f44b9c84de2cda7530737db6c1acdc80d;hb=c1da86ebab41895bf49ed747c75ecf722e8c5586;hp=cf4fc0433e889f5966bee3806eee1427d57c521c;hpb=ccd6e7001572808400b9cb9bc91f9bedcf28a1ad;p=blank.git diff --git a/src/server/Server.hpp b/src/server/Server.hpp index cf4fc04..1a4c0b4 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 "../world/WorldManipulator.hpp" #include #include @@ -16,7 +17,8 @@ namespace server { class ClientConnection; -class Server { +class Server +: public WorldManipulator { public: Server(const Config::Network &, World &); @@ -35,6 +37,8 @@ public: bool HasPlayerModel() const noexcept; const CompositeModel &GetPlayerModel() const noexcept; + void SetBlock(Chunk &, int, const Block &) override; + private: void HandlePacket(const UDPpacket &);