public void Deserialize(IDataReader reader)
 {
     BidHouseItems = new ObjectItemGenericQuantityPrice[reader.ReadShort()];
     for (var i = 0; i < BidHouseItems.Length; i++)
     {
         (BidHouseItems[i] = new ObjectItemGenericQuantityPrice()).Deserialize(reader);
     }
     MerchantItems = new ObjectItemGenericQuantityPrice[reader.ReadShort()];
     for (var i = 0; i < MerchantItems.Length; i++)
     {
         (MerchantItems[i] = new ObjectItemGenericQuantityPrice()).Deserialize(reader);
     }
 }
        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);
            }
        }
        public override void Serialize(ICustomDataOutput writer)
        {
            writer.WriteShort(((short)(m_bidHouseItems.Count)));
            int bidHouseItemsIndex;

            for (bidHouseItemsIndex = 0; (bidHouseItemsIndex < m_bidHouseItems.Count); bidHouseItemsIndex = (bidHouseItemsIndex + 1))
            {
                ObjectItemGenericQuantityPrice objectToSend = m_bidHouseItems[bidHouseItemsIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteShort(((short)(m_merchantItems.Count)));
            int merchantItemsIndex;

            for (merchantItemsIndex = 0; (merchantItemsIndex < m_merchantItems.Count); merchantItemsIndex = (merchantItemsIndex + 1))
            {
                ObjectItemGenericQuantityPrice objectToSend = m_merchantItems[merchantItemsIndex];
                objectToSend.Serialize(writer);
            }
        }
        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);
            }
        }
Beispiel #5
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);
            }
        }
Beispiel #6
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);
            }
        }