public override void Deserialize(IDataReader reader)
        {
            uint num1 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num1; ++index)
            {
                ObjectItemGenericQuantityPrice genericQuantityPrice = new ObjectItemGenericQuantityPrice();
                genericQuantityPrice.Deserialize(reader);
                this.bidHouseItems.Add(genericQuantityPrice);
            }
            uint num2 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num2; ++index)
            {
                ObjectItemGenericQuantityPrice genericQuantityPrice = new ObjectItemGenericQuantityPrice();
                genericQuantityPrice.Deserialize(reader);
                this.merchantItems.Add(genericQuantityPrice);
            }
        }
Example #2
0
        public override void Deserialize(IDataReader reader)
        {
            var bidHouseItemsCount = reader.ReadUShort();

            BidHouseItems = new List <ObjectItemGenericQuantityPrice>();
            for (var bidHouseItemsIndex = 0; bidHouseItemsIndex < bidHouseItemsCount; bidHouseItemsIndex++)
            {
                var objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                BidHouseItems.Add(objectToAdd);
            }
            var merchantItemsCount = reader.ReadUShort();

            MerchantItems = new List <ObjectItemGenericQuantityPrice>();
            for (var merchantItemsIndex = 0; merchantItemsIndex < merchantItemsCount; merchantItemsIndex++)
            {
                var objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                MerchantItems.Add(objectToAdd);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            var BidHouseItemsCount = reader.ReadShort();

            BidHouseItems = new List <ObjectItemGenericQuantityPrice>();
            for (var i = 0; i < BidHouseItemsCount; i++)
            {
                var objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                BidHouseItems.Add(objectToAdd);
            }
            var MerchantItemsCount = reader.ReadShort();

            MerchantItems = new List <ObjectItemGenericQuantityPrice>();
            for (var i = 0; i < MerchantItemsCount; i++)
            {
                var objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                MerchantItems.Add(objectToAdd);
            }
        }
Example #4
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var countBidHouseItems = reader.ReadShort();

            BidHouseItems = new List <ObjectItemGenericQuantityPrice>();
            for (short i = 0; i < countBidHouseItems; i++)
            {
                ObjectItemGenericQuantityPrice type = new ObjectItemGenericQuantityPrice();
                type.Deserialize(reader);
                BidHouseItems.Add(type);
            }
            var countMerchantItems = reader.ReadShort();

            MerchantItems = new List <ObjectItemGenericQuantityPrice>();
            for (short i = 0; i < countMerchantItems; i++)
            {
                ObjectItemGenericQuantityPrice type = new ObjectItemGenericQuantityPrice();
                type.Deserialize(reader);
                MerchantItems.Add(type);
            }
        }
        public override void Deserialize(ICustomDataInput reader)
        {
            int bidHouseItemsCount = reader.ReadUShort();
            int bidHouseItemsIndex;

            m_bidHouseItems = new System.Collections.Generic.List <ObjectItemGenericQuantityPrice>();
            for (bidHouseItemsIndex = 0; (bidHouseItemsIndex < bidHouseItemsCount); bidHouseItemsIndex = (bidHouseItemsIndex + 1))
            {
                ObjectItemGenericQuantityPrice objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                m_bidHouseItems.Add(objectToAdd);
            }
            int merchantItemsCount = reader.ReadUShort();
            int merchantItemsIndex;

            m_merchantItems = new System.Collections.Generic.List <ObjectItemGenericQuantityPrice>();
            for (merchantItemsIndex = 0; (merchantItemsIndex < merchantItemsCount); merchantItemsIndex = (merchantItemsIndex + 1))
            {
                ObjectItemGenericQuantityPrice objectToAdd = new ObjectItemGenericQuantityPrice();
                objectToAdd.Deserialize(reader);
                m_merchantItems.Add(objectToAdd);
            }
        }