public GameRolePlayTaxCollectorInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.TaxCollectorStaticInformations identification, byte guildLevel, int taxCollectorAttack) : base(contextualId, look, disposition) { this.identification = identification; this.guildLevel = guildLevel; this.taxCollectorAttack = taxCollectorAttack; }
public GameRolePlayTaxCollectorInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.TaxCollectorStaticInformations identification, byte 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 = 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(); }
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(); }