public TaxCollectorInformations(int uniqueId, uint firtNameId, uint lastNameId, AdditionalTaxCollectorInformations additionalInfos, short worldX, short worldY, uint subAreaId, sbyte state, EntityLook look, TaxCollectorComplementaryInformations[] complements) { this.uniqueId = uniqueId; this.firtNameId = firtNameId; this.lastNameId = lastNameId; this.additionalInfos = additionalInfos; this.worldX = worldX; this.worldY = worldY; this.subAreaId = subAreaId; this.state = state; this.look = look; this.complements = complements; }
public virtual void Deserialize(IDataReader reader) { this.uniqueId = reader.ReadInt(); this.firtNameId = reader.ReadVarUhShort(); this.lastNameId = reader.ReadVarUhShort(); this.additionalInfos = new AdditionalTaxCollectorInformations(); this.additionalInfos.Deserialize(reader); this.worldX = reader.ReadShort(); this.worldY = reader.ReadShort(); this.subAreaId = reader.ReadVarUhShort(); this.state = reader.ReadSByte(); this.look = new EntityLook(); this.look.Deserialize(reader); ushort num = reader.ReadUShort(); this.complements = new TaxCollectorComplementaryInformations[num]; for (int i = 0; i < num; i++) { this.complements[i] = ProtocolTypeManager.GetInstance <TaxCollectorComplementaryInformations>(reader.ReadUShort()); this.complements[i].Deserialize(reader); } }