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]); } }
public abstract void SerializeInventorySection(Stream stream, PlayerData.Inventory.InventorySection section);