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

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

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

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

            CurrentReel = reel;
        }