summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/EventArgsLocationObjectsChanged.cs')
-rw-r--r--src/SMAPI/Events/EventArgsLocationObjectsChanged.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs b/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
new file mode 100644
index 00000000..058999e9
--- /dev/null
+++ b/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
@@ -0,0 +1,28 @@
+using System;
+using Microsoft.Xna.Framework;
+using StardewValley;
+using Object = StardewValley.Object;
+
+namespace StardewModdingAPI.Events
+{
+ /// <summary>Event arguments for a <see cref="LocationEvents.LocationObjectsChanged"/> event.</summary>
+ public class EventArgsLocationObjectsChanged : EventArgs
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The current list of objects in the current location.</summary>
+ public SerializableDictionary<Vector2, Object> NewObjects { get; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="newObjects">The current list of objects in the current location.</param>
+ public EventArgsLocationObjectsChanged(SerializableDictionary<Vector2, Object> newObjects)
+ {
+ this.NewObjects = newObjects;
+ }
+ }
+}