Пример #1
0
        public void AddUsableEquipment(string equipmentShortName)
        {
            if (UsableEquipment.Count == 0)
            {
                UsableEquipment.Add(equipmentShortName);
                return;
            }
            else
            {
                foreach (string equipment in UsableEquipment)
                {
                    if (equipment == equipmentShortName)
                    {
                        return;
                    }
                }

                UsableEquipment.Add(equipmentShortName);
                return;
            }
        }
Пример #2
0
 public void RemoveUsableEquipment(string equipmentShortName)
 {
     UsableEquipment.Remove(equipmentShortName);
 }