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; }
public ItemBodyArmor(ItemBodyArmorModel model) : base(model) { }