GameServer.h 611 B

123456789101112131415161718192021222324
  1. #ifndef GAMESERVER_H
  2. #define GAMESERVER_H
  3. #include "server/network/IServerListener.h"
  4. #include "server/commands/CommandManager.h"
  5. #include "commands/ServerCommands.h"
  6. class GameServer : public IServerListener
  7. {
  8. public:
  9. void start(uint16_t port, uint16_t maxClients);
  10. void onFullServerClientConnect(int socket) const override;
  11. void onClientConnect(int socket) const override;
  12. void onClientPackage(int socket, Stream& in) const override;
  13. void onClientDisconnect(int socket) const override;
  14. private:
  15. CommandManager commandManager;
  16. ServerCommands serverCommands;
  17. };
  18. #endif