Example #1
0
        /// <summary>
        /// Decodes this instance.
        /// </summary>
        internal void Decode(ByteStream Packet)
        {
            for (int i = Packet.ReadVInt(); i > 0; i--)
            {
                ShopItem ShopItem = ShopItemFactory.CreateShopItem(Packet.ReadVInt());

                if (ShopItem != null)
                {
                    ShopItem.Decode(Packet);
                    this.Items.Add(ShopItem);
                }
            }
        }