summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsGameLocationsChanged.cs
blob: c68951ce9a66e0dc2ee53bfb72551f7d4fc1f4ec (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 List<GameLocation> NewLocations { get; private set; }


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