summaryrefslogtreecommitdiff
path: root/src/TrainerMod/Framework/ItemData/SearchableRing.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-02 17:37:30 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-02 17:37:30 -0400
commit40e8d3da0e204117d0a6de91b368ef420eb31df0 (patch)
tree8c1d2f1149b9eff23db90c7dafad0f05de279028 /src/TrainerMod/Framework/ItemData/SearchableRing.cs
parenta0c4746c27656d6617853890d270072c13843c64 (diff)
downloadSMAPI-40e8d3da0e204117d0a6de91b368ef420eb31df0.tar.gz
SMAPI-40e8d3da0e204117d0a6de91b368ef420eb31df0.tar.bz2
SMAPI-40e8d3da0e204117d0a6de91b368ef420eb31df0.zip
migrate list_items command to new item repository (#302)
Diffstat (limited to 'src/TrainerMod/Framework/ItemData/SearchableRing.cs')
-rw-r--r--src/TrainerMod/Framework/ItemData/SearchableRing.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/TrainerMod/Framework/ItemData/SearchableRing.cs b/src/TrainerMod/Framework/ItemData/SearchableRing.cs
deleted file mode 100644
index 20b6aef2..00000000
--- a/src/TrainerMod/Framework/ItemData/SearchableRing.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using StardewValley.Objects;
-
-namespace TrainerMod.Framework.ItemData
-{
- /// <summary>A ring that can be searched and added to the player's inventory through the console.</summary>
- internal class SearchableRing : ISearchItem
- {
- /*********
- ** Properties
- *********/
- /// <summary>The underlying item.</summary>
- private readonly Ring Ring;
-
-
- /*********
- ** Accessors
- *********/
- /// <summary>Whether the item is valid.</summary>
- public bool IsValid => this.Ring != null;
-
- /// <summary>The item ID.</summary>
- public int ID => this.Ring.parentSheetIndex;
-
- /// <summary>The item name.</summary>
- public string Name => this.Ring.Name;
-
- /// <summary>The item type.</summary>
- public ItemType Type => ItemType.Ring;
-
-
- /*********
- ** Accessors
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="id">The ring ID.</param>
- public SearchableRing(int id)
- {
- try
- {
- this.Ring = new Ring(id);
- }
- catch
- {
- // invalid
- }
- }
- }
-} \ No newline at end of file