public function __construct(GameClient $client, ClientMessage $packet, GameEnvironment $environment)
 {
     $sso = $packet->readString();
     if ($client->getHabbo() == null) {
         $habbo = $environment->getHabboManager()->loadHabbo($sso, $client);
         if ($habbo != null) {
             $client->setHabbo($habbo);
             $client->getHabbo()->connect();
             $environment->getHabboManager()->addHabbo($habbo);
             $messages = array();
         }
     }
 }
 public function __construct(GameClient $client, ClientMessage $packet)
 {
     $client->setBuild($packet->readString());
 }
 public function __construct(GameClient $client, ClientMessage $packet)
 {
     $client->generateSharedKey(GameServer::getRSA()->verify($packet->readString()));
     $client->sendResponse(new SecretKeyMessageComposer(GameServer::getRSA()->sign($client->getPublicKey())));
     $client->initRC4($client->getSharedKey(true));
 }
 public function __construct(GameClient $client, ClientMessage $packet)
 {
     $client->initDH();
     $client->sendResponse(new InitCryptoMessageComposer(GameServer::getRSA()->sign($client->getPrime()), GameServer::getRSA()->sign($client->getGenerator())));
 }