]> git.localhorst.tv Git - blank.git/blobdiff - src/server/Server.hpp
split input handling
[blank.git] / src / server / Server.hpp
index bf2399180111354191c2a922bfe6754c84464ac7..cf4fc0433e889f5966bee3806eee1427d57c521c 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef BLANK_SERVER_SERVER_HPP
 #define BLANK_SERVER_SERVER_HPP
 
+#include "../app/Config.hpp"
+
 #include <list>
 #include <SDL_net.h>
 
@@ -17,12 +19,7 @@ class ClientConnection;
 class Server {
 
 public:
-       struct Config {
-               Uint16 port = 12354;
-       };
-
-public:
-       Server(const Config &, World &);
+       Server(const Config::Network &, World &);
        ~Server();
 
        void Handle();