public ItemBodyArmor(ItemModel model)
            : base(model)
        {
            if (!(model is ItemBodyArmorModel))
            {
                throw new ArgumentException("model is not a BodyArmorModel");
            }

            ItemBodyArmorModel m = model as ItemBodyArmorModel;

            this.Protection_Hit  = m.Protection_Hit;
            this.Protection_Shot = m.Protection_Shot;
            this.Encumbrance     = m.Encumbrance;
            this.Weight          = m.Weight;
        }
Exemplo n.º 2
0
 public ItemBodyArmor(ItemBodyArmorModel model) : base(model)
 {
 }