Example #1
0
 public Server(string ip, int port, IDatabase database)
 {
     _ip         = ip;
     _port       = port;
     _database   = database;
     Lobbies     = new List <Lobby>();
     _proccessor = new CommandProccessor();
 }
Example #2
0
 public Lobby(Socket socket, User user, CommandProccessor proccessor) : base(socket)
 {
     Socket      = socket;
     User        = user;
     _proccessor = proccessor;
 }