Exemple #1
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var limit = reader.ReadUShort();

            bidHouseItems = new Types.ObjectItemGenericQuantityPrice[limit];
            for (int i = 0; i < limit; i++)
            {
                bidHouseItems[i] = new Types.ObjectItemGenericQuantityPrice();
                bidHouseItems[i].Deserialize(reader);
            }
            limit         = reader.ReadUShort();
            merchantItems = new Types.ObjectItemGenericQuantityPrice[limit];
            for (int i = 0; i < limit; i++)
            {
                merchantItems[i] = new Types.ObjectItemGenericQuantityPrice();
                merchantItems[i].Deserialize(reader);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            var limit          = reader.ReadUShort();
            var bidHouseItems_ = new Types.ObjectItemGenericQuantityPrice[limit];

            for (int i = 0; i < limit; i++)
            {
                bidHouseItems_[i] = new Types.ObjectItemGenericQuantityPrice();
                bidHouseItems_[i].Deserialize(reader);
            }
            bidHouseItems = bidHouseItems_;
            limit         = reader.ReadUShort();
            var merchantItems_ = new Types.ObjectItemGenericQuantityPrice[limit];

            for (int i = 0; i < limit; i++)
            {
                merchantItems_[i] = new Types.ObjectItemGenericQuantityPrice();
                merchantItems_[i].Deserialize(reader);
            }
            merchantItems = merchantItems_;
        }