]> git.localhorst.tv Git - blank.git/blobdiff - src/server/Server.hpp
transmit player input from client to server
[blank.git] / src / server / Server.hpp
index cf4fc0433e889f5966bee3806eee1427d57c521c..1a4c0b4f44b9c84de2cda7530737db6c1acdc80d 100644 (file)
@@ -2,6 +2,7 @@
 #define BLANK_SERVER_SERVER_HPP
 
 #include "../app/Config.hpp"
+#include "../world/WorldManipulator.hpp"
 
 #include <list>
 #include <SDL_net.h>
@@ -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 &);