summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsLocationsChanged.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-05 01:31:06 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-05 01:31:06 -0400
commitb8fd3aedfe884741bdda8c68398427f875585456 (patch)
tree12b6395923c930fa3155d4be2f38b1aa6e660217 /src/SMAPI/Events/EventArgsLocationsChanged.cs
parenta65a49a62201cc897e73c265a0a808ef0baad002 (diff)
downloadSMAPI-b8fd3aedfe884741bdda8c68398427f875585456.tar.gz
SMAPI-b8fd3aedfe884741bdda8c68398427f875585456.tar.bz2
SMAPI-b8fd3aedfe884741bdda8c68398427f875585456.zip
rewrite location events for multiplayer
Diffstat (limited to 'src/SMAPI/Events/EventArgsLocationsChanged.cs')
-rw-r--r--src/SMAPI/Events/EventArgsLocationsChanged.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/SMAPI/Events/EventArgsLocationsChanged.cs b/src/SMAPI/Events/EventArgsLocationsChanged.cs
new file mode 100644
index 00000000..20984f45
--- /dev/null
+++ b/src/SMAPI/Events/EventArgsLocationsChanged.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using StardewValley;
+
+namespace StardewModdingAPI.Events
+{
+ /// <summary>Event arguments for a <see cref="LocationEvents.LocationsChanged"/> event.</summary>
+ public class EventArgsLocationsChanged : EventArgs
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The added locations.</summary>
+ public IEnumerable<GameLocation> Added { get; }
+
+ /// <summary>The removed locations.</summary>
+ public IEnumerable<GameLocation> Removed { get; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="added">The added locations.</param>
+ /// <param name="removed">The removed locations.</param>
+ public EventArgsLocationsChanged(IEnumerable<GameLocation> added, IEnumerable<GameLocation> removed)
+ {
+ this.Added = added.ToArray();
+ this.Removed = removed.ToArray();
+ }
+ }
+}