summaryrefslogtreecommitdiff
path: root/src/TrainerMod/Framework/ItemData
diff options
context:
space:
mode:
Diffstat (limited to 'src/TrainerMod/Framework/ItemData')
-rw-r--r--src/TrainerMod/Framework/ItemData/ItemType.cs39
-rw-r--r--src/TrainerMod/Framework/ItemData/SearchableItem.cs41
2 files changed, 0 insertions, 80 deletions
diff --git a/src/TrainerMod/Framework/ItemData/ItemType.cs b/src/TrainerMod/Framework/ItemData/ItemType.cs
deleted file mode 100644
index 423455e9..00000000
--- a/src/TrainerMod/Framework/ItemData/ItemType.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace TrainerMod.Framework.ItemData
-{
- /// <summary>An item type that can be searched and added to the player through the console.</summary>
- internal enum ItemType
- {
- /// <summary>A big craftable object in <see cref="StardewValley.Game1.bigCraftablesInformation"/></summary>
- BigCraftable,
-
- /// <summary>A <see cref="Boots"/> item.</summary>
- Boots,
-
- /// <summary>A fish item.</summary>
- Fish,
-
- /// <summary>A <see cref="Wallpaper"/> flooring item.</summary>
- Flooring,
-
- /// <summary>A <see cref="Furniture"/> item.</summary>
- Furniture,
-
- /// <summary>A <see cref="Hat"/> item.</summary>
- Hat,
-
- /// <summary>Any object in <see cref="StardewValley.Game1.objectInformation"/> (except rings).</summary>
- Object,
-
- /// <summary>A <see cref="Ring"/> item.</summary>
- Ring,
-
- /// <summary>A <see cref="Tool"/> tool.</summary>
- Tool,
-
- /// <summary>A <see cref="Wallpaper"/> wall item.</summary>
- Wallpaper,
-
- /// <summary>A <see cref="StardewValley.Tools.MeleeWeapon"/> or <see cref="StardewValley.Tools.Slingshot"/> item.</summary>
- Weapon
- }
-}
diff --git a/src/TrainerMod/Framework/ItemData/SearchableItem.cs b/src/TrainerMod/Framework/ItemData/SearchableItem.cs
deleted file mode 100644
index 146da1a8..00000000
--- a/src/TrainerMod/Framework/ItemData/SearchableItem.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using StardewValley;
-
-namespace TrainerMod.Framework.ItemData
-{
- /// <summary>A game item with metadata.</summary>
- internal class SearchableItem
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The item type.</summary>
- public ItemType Type { get; }
-
- /// <summary>The item instance.</summary>
- public Item Item { get; }
-
- /// <summary>The item's unique ID for its type.</summary>
- public int ID { get; }
-
- /// <summary>The item's default name.</summary>
- public string Name => this.Item.Name;
-
- /// <summary>The item's display name for the current language.</summary>
- public string DisplayName => this.Item.DisplayName;
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="type">The item type.</param>
- /// <param name="id">The unique ID (if different from the item's parent sheet index).</param>
- /// <param name="item">The item instance.</param>
- public SearchableItem(ItemType type, int id, Item item)
- {
- this.Type = type;
- this.ID = id;
- this.Item = item;
- }
- }
-}