public GameRolePlayTaxCollectorInformations(double contextualId, Types.EntityLook look, EntityDispositionInformations disposition, TaxCollectorStaticInformations identification, sbyte guildLevel, int taxCollectorAttack) : base(contextualId, look, disposition) { this.identification = identification; this.guildLevel = guildLevel; this.taxCollectorAttack = taxCollectorAttack; }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); identification = Types.ProtocolTypeManager.GetInstance <TaxCollectorStaticInformations>(reader.ReadShort()); identification.Deserialize(reader); guildLevel = reader.ReadSByte(); 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(); }