diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-01 23:16:42 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-01 23:16:42 -0400 |
commit | 92006bd6ed20365f1ded4bd07387b0ba9ed0ff92 (patch) | |
tree | 0827ba985a2221577d8c4209f82a94748cae4612 /src/SMAPI/Framework/SGame.cs | |
parent | a2523696fd539621351c178f6ff57ade19dd3e34 (diff) | |
download | SMAPI-92006bd6ed20365f1ded4bd07387b0ba9ed0ff92.tar.gz SMAPI-92006bd6ed20365f1ded4bd07387b0ba9ed0ff92.tar.bz2 SMAPI-92006bd6ed20365f1ded4bd07387b0ba9ed0ff92.zip |
add large terrain feature list changed event (#310)
Diffstat (limited to 'src/SMAPI/Framework/SGame.cs')
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 38f96566..90dbacfe 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -567,6 +567,17 @@ namespace StardewModdingAPI.Framework this.Events.Location_BuildingsChanged.Raise(new EventArgsLocationBuildingsChanged(location, added, removed)); } + // large terrain features changed + if (watcher.LargeTerrainFeaturesWatcher.IsChanged) + { + GameLocation location = watcher.Location; + LargeTerrainFeature[] added = watcher.LargeTerrainFeaturesWatcher.Added.ToArray(); + LargeTerrainFeature[] removed = watcher.LargeTerrainFeaturesWatcher.Removed.ToArray(); + watcher.LargeTerrainFeaturesWatcher.Reset(); + + this.Events.World_LargeTerrainFeatureListChanged.Raise(new WorldLargeTerrainFeatureListChangedEventArgs(location, added, removed)); + } + // NPCs changed if (watcher.NpcsWatcher.IsChanged) { |