static void ParseArmor(string[] line) { var armor = new Armor(line[1], int.Parse(line[2]), line[3], line[4], line[5], line.Length >= 7 ? line[6] : ""); EquipmentManager.Add(armor); }
static void ParseWeapon(string[] line) { var weapon = new Weapon(line[1], int.Parse(line[2]), line[3], line[4]); EquipmentManager.Add(weapon); }