namespace Supercell.Laser.Logic.Home.Gatcha { using Supercell.Laser.Titan.DataStream; public class DeliveryUnit { public readonly int Type; private List Drops; public int? TypeBox; public DeliveryUnit(int type) { Type = type; Drops = new List(); } public void AddDrop(GatchaDrop drop) { if (drop != null) { Drops.Add(drop); } } public GatchaDrop[] GetDrops() { return Drops.ToArray(); } public void Encode(ByteStream stream) { stream.WriteVInt(Type); stream.WriteVInt(Drops.Count); foreach (GatchaDrop drop in Drops) { drop.Encode(stream); } } } }