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.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs b/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
index 058999e9..de3c31ea 100644
--- a/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
+++ b/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
@@ -1,6 +1,10 @@
-using System;
+using System;
using Microsoft.Xna.Framework;
+#if STARDEW_VALLEY_1_3
+using Netcode;
+#else
using StardewValley;
+#endif
using Object = StardewValley.Object;
namespace StardewModdingAPI.Events
@@ -12,7 +16,11 @@ namespace StardewModdingAPI.Events
** Accessors
*********/
/// <summary>The current list of objects in the current location.</summary>
+#if STARDEW_VALLEY_1_3
+ public IDictionary<Vector2, NetRef<Object>> NewObjects { get; }
+#else
public SerializableDictionary<Vector2, Object> NewObjects { get; }
+#endif
/*********
@@ -20,7 +28,13 @@ namespace StardewModdingAPI.Events
*********/
/// <summary>Construct an instance.</summary>
/// <param name="newObjects">The current list of objects in the current location.</param>
- public EventArgsLocationObjectsChanged(SerializableDictionary<Vector2, Object> newObjects)
+ public EventArgsLocationObjectsChanged(
+#if STARDEW_VALLEY_1_3
+ IDictionary<Vector2, NetRef<Object>> newObjects
+#else
+ SerializableDictionary<Vector2, Object> newObjects
+#endif
+ )
{
this.NewObjects = newObjects;
}