public override void Deserialize(IDataReader reader) { base.Deserialize(reader); this.identification = ProtocolTypeManager.GetInstance <TaxCollectorStaticInformations>((uint)reader.ReadUShort()); this.identification.Deserialize(reader); this.guildLevel = (uint)reader.ReadByte(); if (this.guildLevel < 0U || this.guildLevel > (uint)byte.MaxValue) { throw new Exception("Forbidden value (" + (object)this.guildLevel + ") on element of GameRolePlayTaxCollectorInformations.guildLevel."); } this.taxCollectorAttack = reader.ReadInt(); }
public GameRolePlayTaxCollectorInformations( double contextualId, EntityDispositionInformations disposition, EntityLook look, TaxCollectorStaticInformations identification, uint guildLevel, int taxCollectorAttack) : base(contextualId, disposition, look) { this.identification = identification; this.guildLevel = guildLevel; this.taxCollectorAttack = taxCollectorAttack; }