summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/DebrisListChangedEventArgs.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-29 18:31:23 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-29 18:31:23 -0500
commitdae12c16e5ecb88e8043272c9d8ffdc88bc351ca (patch)
treee47d37e2eb58abb441339b276a6be62abab6a1e2 /src/SMAPI/Events/DebrisListChangedEventArgs.cs
parent3a5356b039bb9a25dc4031eb5a896894b8f917e2 (diff)
downloadSMAPI-dae12c16e5ecb88e8043272c9d8ffdc88bc351ca.tar.gz
SMAPI-dae12c16e5ecb88e8043272c9d8ffdc88bc351ca.tar.bz2
SMAPI-dae12c16e5ecb88e8043272c9d8ffdc88bc351ca.zip
add IsCurrentLocation event arg to World events
Diffstat (limited to 'src/SMAPI/Events/DebrisListChangedEventArgs.cs')
-rw-r--r--src/SMAPI/Events/DebrisListChangedEventArgs.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Events/DebrisListChangedEventArgs.cs b/src/SMAPI/Events/DebrisListChangedEventArgs.cs
index 68328885..61b7590a 100644
--- a/src/SMAPI/Events/DebrisListChangedEventArgs.cs
+++ b/src/SMAPI/Events/DebrisListChangedEventArgs.cs
@@ -20,6 +20,9 @@ namespace StardewModdingAPI.Events
/// <summary>The debris removed from the location.</summary>
public IEnumerable<Debris> Removed { get; }
+ /// <summary>Whether this is the location containing the local player.</summary>
+ public bool IsCurrentLocation => object.ReferenceEquals(this.Location, Game1.player?.currentLocation);
+
/*********
** Public methods