public QuestReagentBag(ReagentBagType bagType)
     : this(bagType, QuestReagentBag.GetRandomRefillAmount())
 {
 }
 public QuestReagentBag(ReagentBagType bagType, int refillAmount)
 {
     Type = bagType;
     m_iBagRefillAmount = refillAmount;
     ERefillUtility.DirectRefill(this, ReagentTypes, BagRefillAmount);
 }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
                case 2:
                    m_iBagRefillAmount = reader.ReadInt();
                    goto case 1;
                case 1:
                    m_Type = (ReagentBagType)reader.ReadInt();
                    break;
            }

            if (version < 2)
                m_iBagRefillAmount = QuestReagentBag.GetRandomRefillAmount();
        }