public void RemoveItemFromBackpack(GearItem item) { if (item != null && Backpack.Contains(item)) { Backpack.Remove(item); } }
public void AddItemToBackpack(GearItem item) { if (item != null) { Backpack.Add(item); } }
public void InstallLure(GearItem lure) { if (lure.Category != ItemCategory.Lure) { throw new ArgumentException("Category must be Lure"); } CurrentLure = lure; }
public void InstallHook(GearItem hook) { if (hook.Category != ItemCategory.Hook) { throw new ArgumentException("Category must be Hook"); } CurrentHook = hook; }
public void InstallLine(GearItem line) { if (line.Category != ItemCategory.FishingLine) { throw new ArgumentException("Category must be FishingLine"); } CurrentLine = line; }
public void InstallReel(GearItem reel) { if (reel.Category != ItemCategory.Reel) { throw new ArgumentException("Category must be Reel"); } CurrentReel = reel; }