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/StateTracking/LocationTracker.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/StateTracking/LocationTracker.cs')
-rw-r--r-- | src/SMAPI/Framework/StateTracking/LocationTracker.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/StateTracking/LocationTracker.cs b/src/SMAPI/Framework/StateTracking/LocationTracker.cs index 4ac455ac..1b4c0b19 100644 --- a/src/SMAPI/Framework/StateTracking/LocationTracker.cs +++ b/src/SMAPI/Framework/StateTracking/LocationTracker.cs @@ -33,6 +33,9 @@ namespace StardewModdingAPI.Framework.StateTracking /// <summary>Tracks added or removed buildings.</summary> public ICollectionWatcher<Building> BuildingsWatcher { get; } + /// <summary>Tracks added or removed large terrain features.</summary> + public ICollectionWatcher<LargeTerrainFeature> LargeTerrainFeaturesWatcher { get; } + /// <summary>Tracks added or removed NPCs.</summary> public ICollectionWatcher<NPC> NpcsWatcher { get; } @@ -56,6 +59,7 @@ namespace StardewModdingAPI.Framework.StateTracking this.BuildingsWatcher = location is BuildableGameLocation buildableLocation ? WatcherFactory.ForNetCollection(buildableLocation.buildings) : (ICollectionWatcher<Building>)WatcherFactory.ForObservableCollection(new ObservableCollection<Building>()); + this.LargeTerrainFeaturesWatcher = WatcherFactory.ForNetCollection(location.largeTerrainFeatures); this.NpcsWatcher = WatcherFactory.ForNetCollection(location.characters); this.ObjectsWatcher = WatcherFactory.ForNetDictionary(location.netObjects); this.TerrainFeaturesWatcher = WatcherFactory.ForNetDictionary(location.terrainFeatures); @@ -63,6 +67,7 @@ namespace StardewModdingAPI.Framework.StateTracking this.Watchers.AddRange(new IWatcher[] { this.BuildingsWatcher, + this.LargeTerrainFeaturesWatcher, this.NpcsWatcher, this.ObjectsWatcher, this.TerrainFeaturesWatcher |