#ifndef BLANK_SERVER_SERVER_HPP
#define BLANK_SERVER_SERVER_HPP
+#include "../app/Config.hpp"
+#include "../world/WorldManipulator.hpp"
+
#include <list>
#include <SDL_net.h>
class ClientConnection;
-class Server {
-
-public:
- struct Config {
- Uint16 port = 12354;
- };
+class Server
+: public WorldManipulator {
public:
- Server(const Config &, World &);
+ Server(const Config::Network &, World &);
~Server();
void Handle();
bool HasPlayerModel() const noexcept;
const CompositeModel &GetPlayerModel() const noexcept;
+ void SetBlock(Chunk &, int, const Block &) override;
+
private:
void HandlePacket(const UDPpacket &);