using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using StardewValley; using StardewValley.TerrainFeatures; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class WorldTerrainFeatureListChangedEventArgs : EventArgs { /********* ** Accessors *********/ /// The location which changed. public GameLocation Location { get; } /// The terrain features added to the location. public IEnumerable> Added { get; } /// The terrain features removed from the location. public IEnumerable> Removed { get; } /********* ** Public methods *********/ /// Construct an instance. /// The location which changed. /// The terrain features added to the location. /// The terrain features removed from the location. public WorldTerrainFeatureListChangedEventArgs(GameLocation location, IEnumerable> added, IEnumerable> removed) { this.Location = location; this.Added = added.ToArray(); this.Removed = removed.ToArray(); } } }