示例#1
0
        /// <summary>
        /// Decodes this instance.
        /// </summary>
        internal void Encode(ByteStream Packet)
        {
            Packet.AddVInt(this.Items.Count);

            this.Items.ForEach(ShopItem =>
            {
                Packet.AddVInt(ShopItem.Type);
                ShopItem.Encode(Packet);
            });
        }