public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     identification = ProtocolTypeManager.GetInstance <Types.TaxCollectorStaticInformations>(reader.ReadUShort());
     identification.Deserialize(reader);
     guildLevel         = reader.ReadByte();
     taxCollectorAttack = reader.ReadInt();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     identification = Types.ProtocolTypeManager.GetInstance<Types.TaxCollectorStaticInformations>(reader.ReadShort());
     identification.Deserialize(reader);
     guildLevel = reader.ReadByte();
     if ((guildLevel < 0) || (guildLevel > 255))
         throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : (guildLevel < 0) || (guildLevel > 255)");
     taxCollectorAttack = reader.ReadInt();
 }
Esempio n. 3
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     identification = Types.ProtocolTypeManager.GetInstance <Types.TaxCollectorStaticInformations>(reader.ReadShort());
     identification.Deserialize(reader);
     guildLevel = reader.ReadByte();
     if (guildLevel < 0 || guildLevel > 255)
     {
         throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : guildLevel < 0 || guildLevel > 255");
     }
     taxCollectorAttack = reader.ReadInt();
 }