Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  1. using DragonMose.Networking.GameHandlerTypes;
  2.  
  3. namespace DragonMose.LoginService.GameNetwork.Protocol.Client
  4. {
  5.     public sealed class CMSG_USER_GER_LOGIN_REQ : FiestaClientPacket
  6.     {
  7.         public string UserName;
  8.         public string Password;
  9.  
  10.         public CMSG_USER_GER_LOGIN_REQ()
  11.             : base(GameHandler03Type._Header,
  12.                   GameHandler03Type.CMSG_USER_GER_LOGIN_REQ)
  13.         {
  14.         }
  15.  
  16.         public CMSG_USER_GER_LOGIN_REQ(byte[] Buffer)
  17.             : base(Buffer)
  18.         {
  19.         }
  20.  
  21.         public override bool Read()
  22.         {
  23.             return Reader.ReadString(out UserName, 18) &&
  24.                 Reader.ReadString(out Password, 16);
  25.         }
  26.  
  27.         protected override void DisposeInternal()
  28.         {
  29.             UserName = null;
  30.             Password = null;
  31.             base.DisposeInternal();
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement