예제 #1
0
        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);
        }
예제 #2
0
        static void ParseWeapon(string[] line)
        {
            var weapon = new Weapon(line[1], int.Parse(line[2]), line[3], line[4]);

            EquipmentManager.Add(weapon);
        }