Exemple #1
0
 public override void Write(BenCmdServer client)
 {
     client.Write(IsDuplicate);
     client.Write(BanDemerits);
     client.Write(IsDeveloper);
     client.Write(CurrentServer);
 }
Exemple #2
0
 public override void Read(BenCmdServer client)
 {
     UserName = client.ReadString(16);
     Time     = client.ReadLong();
     Banlist  = client.ReadString(16);
     Reason   = client.ReadString(30);
     Banner   = client.ReadString(16);
 }
Exemple #3
0
 public override void Write(BenCmdServer client)
 {
     client.Write(Banlist);
     client.Write(Description);
     client.Write(IsSubscribed);
     client.Write(Exists);
     client.Write(Approved);
 }
Exemple #4
0
 public override void Read(BenCmdServer client)
 {
     Reason = client.ReadString(50);
 }
Exemple #5
0
 public override void Write(BenCmdServer client)
 {
     // Do nothing
 }
Exemple #6
0
 public override void Read(BenCmdServer client)
 {
     // Do nothing
 }
Exemple #7
0
 public override void Read(BenCmdServer client)
 {
     Message = client.ReadString(200);
     Level   = (LogLevel)client.ReadSByte();
 }
Exemple #8
0
 public override void Write(BenCmdServer client)
 {
     client.Write(User);
 }
Exemple #9
0
 public override void Read(BenCmdServer client)
 {
     Banlist = client.ReadString(16);
 }
Exemple #10
0
 public override void Write(BenCmdServer client)
 {
     client.Write((byte)Response);
 }
Exemple #11
0
 public override void Read(BenCmdServer client)
 {
     User = client.ReadString(16);
 }
Exemple #12
0
 public override void Read(BenCmdServer client)
 {
     User1    = client.ReadString(16);
     User2    = client.ReadString(16);
     Reporter = client.ReadString(16);
 }
Exemple #13
0
 public override void Read(BenCmdServer client)
 {
     PlayerName = client.ReadString(16);
     Reason     = (LeaveReason)client.ReadByte();
 }
Exemple #14
0
 public override void Read(BenCmdServer client)
 {
     PlayerName = client.ReadString(16);
 }
Exemple #15
0
 public override void Write(BenCmdServer client)
 {
     client.Write(Reason);
 }
Exemple #16
0
 /// <summary>
 /// Send packet data to the specified client.
 /// </summary>
 /// <param name='client'>
 /// The client to write data to.
 /// </param>
 /// <exception cref='InvalidOperationException'>
 /// Is thrown when a read-only package is written.
 /// </exception>
 public virtual void Write(BenCmdServer client)
 {
     throw new InvalidOperationException("Cannot write this packet type (ID: " + PacketID + ")");
 }
Exemple #17
0
 public override void Read(BenCmdServer client)
 {
     AuthToken = client.ReadString(52);
     BCBuild   = client.ReadInt();
 }