Esempio n. 1
0
 public void RemoveItemFromBackpack(GearItem item)
 {
     if (item != null && Backpack.Contains(item))
     {
         Backpack.Remove(item);
     }
 }
Esempio n. 2
0
 public void AddItemToBackpack(GearItem item)
 {
     if (item != null)
     {
         Backpack.Add(item);
     }
 }
Esempio n. 3
0
        public void InstallLure(GearItem lure)
        {
            if (lure.Category != ItemCategory.Lure)
            {
                throw new ArgumentException("Category must be Lure");
            }

            CurrentLure = lure;
        }
Esempio n. 4
0
        public void InstallHook(GearItem hook)
        {
            if (hook.Category != ItemCategory.Hook)
            {
                throw new ArgumentException("Category must be Hook");
            }

            CurrentHook = hook;
        }
Esempio n. 5
0
        public void InstallLine(GearItem line)
        {
            if (line.Category != ItemCategory.FishingLine)
            {
                throw new ArgumentException("Category must be FishingLine");
            }

            CurrentLine = line;
        }
Esempio n. 6
0
        public void InstallReel(GearItem reel)
        {
            if (reel.Category != ItemCategory.Reel)
            {
                throw new ArgumentException("Category must be Reel");
            }

            CurrentReel = reel;
        }