Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public class Authentication : Interfaces.IPacket
  2. {
  3. public string Username, Password, Server;
  4. public Authentication() { }
  5. public void Deserialize(byte[] buffer)
  6. {
  7. Username = Program.Encoding.GetString(buffer, 8, 32).Replace("\0", "");
  8. Password = Program.Encoding.GetString(buffer, 100, 32).Replace("\0", "");
  9. Server = Program.Encoding.GetString(buffer, 136, 16).Replace("\0", "");
  10. }
  11. public byte[] ToArray() { throw new NotImplementedException(); }
  12. public void Send(Client.GameState client) { }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement