public ItemAmmo(ItemModel model)
            : base(model)
        {
            if (!(model is ItemAmmoModel))
            {
                throw new ArgumentException("model is not a AmmoModel");
            }

            ItemAmmoModel m = model as ItemAmmoModel;

            m_AmmoType    = m.AmmoType;
            this.Quantity = m.MaxQuantity;
        }
Ejemplo n.º 2
0
 public ItemAmmo(ItemAmmoModel model)
     : base(model, model.MaxQuantity)
 {
 }