using System; using StardewValley; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class EventArgsCurrentLocationChanged : EventArgs { /********* ** Accessors *********/ /// The player's current location. public GameLocation NewLocation { get; private set; } /// The player's previous location. public GameLocation PriorLocation { get; private set; } /********* ** Public methods *********/ /// Construct an instance. /// The player's previous location. /// The player's current location. public EventArgsCurrentLocationChanged(GameLocation priorLocation, GameLocation newLocation) { this.NewLocation = newLocation; this.PriorLocation = priorLocation; } } }