Пример #1
0
 internal void Process(byte[] Data)
 {
     //Actually build the packet...
     Command = Packets.ByteToHexString(Data.Skip(4).ToArray()).Split(' ')[0];
     Command = Command.Replace(" ", "");
     //Logger.Console.WriteLine("$" + Command + "$");
     Value = Packets.ByteToHexString(Data.Skip(4).ToArray()).Split(' ')[1];
     Value = Value.Replace(" ", "");
 }
Пример #2
0
 internal void Process(byte[] Data)
 {
     //Actually build the packet...
     Username = Packets.ByteToHexString(Data.Take(16).ToArray()).Split('\0')[0];
     Version  = Network.Packets.ByteToUint(Data.Skip(16).Take(4).ToArray());
     if (Data.Length > 20)
     {
         FullUsername = Packets.ByteToHexString(Data.Skip(20).ToArray()).Split('\0')[0];
     }
     else
     {
         FullUsername = Username;
     }
 }
Пример #3
0
 internal void Process(byte[] Data)
 {
     //Actually build the packet...
     MapName = Packets.ByteToHexString(Data.Take(60).ToArray()).Split('\0')[0];
 }