Ejemplo n.º 1
0
        public override void SerializeInventorySection(Stream stream, PlayerData.Inventory.InventorySection section)
        {
            byte[] buffer;

            buffer = BitConverter.GetBytes(section.ItemQuantites.Count);
            stream.Write(buffer, 0, 4);

            foreach (Item item in section.ItemQuantites.Keys)
            {
                SerializeInventoryItem(stream, item.GetId(), section.ItemQuantites[item]);
            }
        }
Ejemplo n.º 2
0
 public abstract void SerializeInventorySection(Stream stream, PlayerData.Inventory.InventorySection section);