Esempio n. 1
0
 public GameClient(ClientWrapper socket)
 {
     Queue        = new ConcurrentPacketQueue();
     PacketFilter = new PacketFilter()
     {
         { 10010, 10 }, { 10005, 7 }, { 2064, 4 }, { 2032, 3 }, { 1027, 2 }
     };
     Attackable    = false;
     Action        = 0;
     _socket       = socket;
     Cryptography  = new GameCryptography(System.Text.Encoding.Default.GetBytes(Constants.GameCryptographyKey));
     DHKeyExchange = new DHKeyExchange.ServerKeyExchange();
 }
Esempio n. 2
0
 public GameState(WinSocket socket)
 {
     Attackable = false;
     Action = 0;
     _socket = socket;
     Cryptography = new GameCryptography(System.Text.ASCIIEncoding.ASCII.GetBytes(ServerBase.Constants.GameCryptographyKey));
     DHKeyExchance = new Network.GamePackets.DHKeyExchange.ServerKeyExchange();
 }