public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            NbcollectorMax = reader.ReadByte();
            var fightersInformationsCount = reader.ReadUShort();

            FightersInformations = new List <TaxCollectorFightersInformation>();
            for (var fightersInformationsIndex = 0; fightersInformationsIndex < fightersInformationsCount; fightersInformationsIndex++)
            {
                var objectToAdd = new TaxCollectorFightersInformation();
                objectToAdd.Deserialize(reader);
                FightersInformations.Add(objectToAdd);
            }
        }
Esempio n. 2
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            NbcollectorMax = reader.ReadSByte();
            var FightersInformationsCount = reader.ReadShort();

            FightersInformations = new List <TaxCollectorFightersInformation>();
            for (var i = 0; i < FightersInformationsCount; i++)
            {
                var objectToAdd = new TaxCollectorFightersInformation();
                objectToAdd.Deserialize(reader);
                FightersInformations.Add(objectToAdd);
            }
            InfoType = reader.ReadSByte();
        }
Esempio n. 3
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            int fightersInformationsCount = reader.ReadUShort();
            int fightersInformationsIndex;

            m_fightersInformations = new System.Collections.Generic.List <TaxCollectorFightersInformation>();
            for (fightersInformationsIndex = 0; (fightersInformationsIndex < fightersInformationsCount); fightersInformationsIndex = (fightersInformationsIndex + 1))
            {
                TaxCollectorFightersInformation objectToAdd = new TaxCollectorFightersInformation();
                objectToAdd.Deserialize(reader);
                m_fightersInformations.Add(objectToAdd);
            }
            m_nbcollectorMax = reader.ReadByte();
        }
Esempio n. 4
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            NbcollectorMax = reader.ReadByte();
            var countFightersInformations = reader.ReadShort();

            FightersInformations = new List <TaxCollectorFightersInformation>();
            for (short i = 0; i < countFightersInformations; i++)
            {
                TaxCollectorFightersInformation type = new TaxCollectorFightersInformation();
                type.Deserialize(reader);
                FightersInformations.Add(type);
            }
            InfoType = reader.ReadByte();
        }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            this.nbcollectorMax = (uint)reader.ReadByte();
            if (this.nbcollectorMax < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.nbcollectorMax + ") on element of TaxCollectorListMessage.nbcollectorMax.");
            }
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                TaxCollectorFightersInformation fightersInformation = new TaxCollectorFightersInformation();
                fightersInformation.Deserialize(reader);
                this.fightersInformations.Add(fightersInformation);
            }
            this.infoType = (uint)reader.ReadByte();
            if (this.infoType < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.infoType + ") on element of TaxCollectorListMessage.infoType.");
            }
        }