using System; using Microsoft.Xna.Framework; #if STARDEW_VALLEY_1_3 using Netcode; #else using StardewValley; #endif using Object = StardewValley.Object; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class EventArgsLocationObjectsChanged : EventArgs { /********* ** Accessors *********/ /// The current list of objects in the current location. #if STARDEW_VALLEY_1_3 public IDictionary> NewObjects { get; } #else public SerializableDictionary NewObjects { get; } #endif /********* ** Public methods *********/ /// Construct an instance. /// The current list of objects in the current location. public EventArgsLocationObjectsChanged( #if STARDEW_VALLEY_1_3 IDictionary> newObjects #else SerializableDictionary newObjects #endif ) { this.NewObjects = newObjects; } } }