public override void Deserialize(IDataReader reader) { nbcollectorMax = reader.ReadSByte(); if (nbcollectorMax < 0) { throw new Exception("Forbidden value on nbcollectorMax = " + nbcollectorMax + ", it doesn't respect the following condition : nbcollectorMax < 0"); } taxCollectorHireCost = reader.ReadShort(); if (taxCollectorHireCost < 0) { throw new Exception("Forbidden value on taxCollectorHireCost = " + taxCollectorHireCost + ", it doesn't respect the following condition : taxCollectorHireCost < 0"); } var limit = reader.ReadUShort(); var informations_ = new Types.TaxCollectorInformations[limit]; for (int i = 0; i < limit; i++) { informations_[i] = Types.ProtocolTypeManager.GetInstance <Types.TaxCollectorInformations>(reader.ReadShort()); informations_[i].Deserialize(reader); } informations = informations_; limit = reader.ReadUShort(); var fightersInformations_ = new Types.TaxCollectorFightersInformation[limit]; for (int i = 0; i < limit; i++) { fightersInformations_[i] = new Types.TaxCollectorFightersInformation(); fightersInformations_[i].Deserialize(reader); } fightersInformations = fightersInformations_; }
public override void Deserialize(IDataReader reader) { var limit = reader.ReadUShort(); var informations_ = new Types.TaxCollectorInformations[limit]; for (int i = 0; i < limit; i++) { informations_[i] = Types.ProtocolTypeManager.GetInstance <Types.TaxCollectorInformations>(reader.ReadShort()); informations_[i].Deserialize(reader); } informations = informations_; }
public override void Deserialize(IDataReader reader) { informations = Types.ProtocolTypeManager.GetInstance <Types.TaxCollectorInformations>(reader.ReadShort()); informations.Deserialize(reader); }
public TaxCollectorMovementAddMessage(Types.TaxCollectorInformations informations) { this.informations = informations; }
public override void Deserialize(IDataReader reader) { informations = Types.ProtocolTypeManager.GetInstance<Types.TaxCollectorInformations>(reader.ReadShort()); informations.Deserialize(reader); }
public TaxCollectorMovementAddMessage(Types.TaxCollectorInformations informations) { this.informations = informations; }