summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-31 17:32:46 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-31 17:32:46 -0500
commit6bf99f0f81582ab6d6212dc21e8c36686ceb5a35 (patch)
tree47c8436f813590b5fcd2d866250ccea5473f10a8 /src/SMAPI/Events
parent0411dcf3db277ed0d3c9f0201b7554a7d61ed1e8 (diff)
downloadSMAPI-6bf99f0f81582ab6d6212dc21e8c36686ceb5a35.tar.gz
SMAPI-6bf99f0f81582ab6d6212dc21e8c36686ceb5a35.tar.bz2
SMAPI-6bf99f0f81582ab6d6212dc21e8c36686ceb5a35.zip
minor refactoring
Diffstat (limited to 'src/SMAPI/Events')
-rw-r--r--src/SMAPI/Events/ChestInventoryChangedEventArgs.cs20
-rw-r--r--src/SMAPI/Events/ItemStackChange.cs5
2 files changed, 9 insertions, 16 deletions
diff --git a/src/SMAPI/Events/ChestInventoryChangedEventArgs.cs b/src/SMAPI/Events/ChestInventoryChangedEventArgs.cs
index a0c63fdc..7771cd7c 100644
--- a/src/SMAPI/Events/ChestInventoryChangedEventArgs.cs
+++ b/src/SMAPI/Events/ChestInventoryChangedEventArgs.cs
@@ -1,8 +1,6 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using Microsoft.Xna.Framework;
using StardewValley;
+using StardewValley.Objects;
namespace StardewModdingAPI.Events
{
@@ -12,24 +10,24 @@ namespace StardewModdingAPI.Events
/*********
** Accessors
*********/
+ /// <summary>The chest whose inventory changed.</summary>
+ public Chest Chest { get; }
+
/// <summary>The location containing the chest.</summary>
public GameLocation Location { get; }
- /// <summary>The tile position of the chest.</summary>
- public StardewValley.Objects.Chest Chest { get; }
-
- /// <summary>The inventory changes added to the chest.</summary>
+ /// <summary>The inventory changes in the chest.</summary>
public ItemStackChange[] Changes { get; }
+
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
+ /// <param name="chest">The chest whose inventory changed.</param>
/// <param name="location">The location containing the chest.</param>
- /// <param name="tile">The tile position of the chest.</param>
- /// <param name="added">The objects added to the location.</param>
- /// <param name="removed">The objects removed from the location.</param>
- internal ChestInventoryChangedEventArgs(GameLocation location, StardewValley.Objects.Chest chest, ItemStackChange[] changes)
+ /// <param name="changes">The inventory changes in the chest.</param>
+ internal ChestInventoryChangedEventArgs(Chest chest, GameLocation location, ItemStackChange[] changes)
{
this.Location = location;
this.Chest = chest;
diff --git a/src/SMAPI/Events/ItemStackChange.cs b/src/SMAPI/Events/ItemStackChange.cs
index dbb529d6..cb5d2b88 100644
--- a/src/SMAPI/Events/ItemStackChange.cs
+++ b/src/SMAPI/Events/ItemStackChange.cs
@@ -16,10 +16,5 @@ namespace StardewModdingAPI.Events
/// <summary>How the inventory slot changed.</summary>
public ChangeType ChangeType { get; set; }
-
- public override string ToString()
- {
- return this.StackChange + " " + this.Item.Name + " " + this.ChangeType.ToString();
- }
}
}