summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-13 20:25:06 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-13 20:25:06 -0400
commitafb3c49bbaab07f3148f70d54f5140cdd83f8c20 (patch)
treedd60902c878c38617f97644b912afb38c568755e /src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
parent833d98f49136325edfc4463097710cf2391dd5b2 (diff)
parent76445dc3589265ba259070300120e96a17957e50 (diff)
downloadSMAPI-afb3c49bbaab07f3148f70d54f5140cdd83f8c20.tar.gz
SMAPI-afb3c49bbaab07f3148f70d54f5140cdd83f8c20.tar.bz2
SMAPI-afb3c49bbaab07f3148f70d54f5140cdd83f8c20.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Events/EventArgsLocationObjectsChanged.cs')
-rw-r--r--src/SMAPI/Events/EventArgsLocationObjectsChanged.cs19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs b/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
index 058999e9..180e9d78 100644
--- a/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
+++ b/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
@@ -1,6 +1,11 @@
-using System;
+using System;
using Microsoft.Xna.Framework;
+#if STARDEW_VALLEY_1_3
+using System.Collections.Generic;
+using Netcode;
+#else
using StardewValley;
+#endif
using Object = StardewValley.Object;
namespace StardewModdingAPI.Events
@@ -12,7 +17,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 +29,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;
}