Exemplo n.º 1
0
 public IClient Create(Socket s)
 {
     var cryptor = new Cryptor();
     var packetReceiver = new AsyncWorldPaketReceiver(s, cryptor);
     var packetSender = new WorldPacketSender(s, cryptor);
     return new AsyncClient(packetReceiver, new WorldPacketProcessor(new Session(packetSender), cryptor));
 }
Exemplo n.º 2
0
        public IClient Create(Socket s)
        {
            var cryptor        = new Cryptor();
            var packetReceiver = new AsyncWorldPaketReceiver(s, cryptor);
            var packetSender   = new WorldPacketSender(s, cryptor);

            return(new AsyncClient(packetReceiver, new WorldPacketProcessor(new Session(packetSender), cryptor)));
        }