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