summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsGameLocationsChanged.cs
blob: 78ba38fa9fbef6e9a3b85d1551c69c39ffb82cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using StardewValley;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for a <see cref="LocationEvents.LocationsChanged"/> event.</summary>
    public class EventArgsGameLocationsChanged : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The current list of game locations.</summary>
        public IList<GameLocation> NewLocations { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="newLocations">The current list of game locations.</param>
        public EventArgsGameLocationsChanged(IList<GameLocation> newLocations)
        {
            this.NewLocations = newLocations;
        }
    }
}