summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsGameLocationsChanged.cs
blob: fb8c821ecef666fdf78c409e039350347faca8d4 (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; }


        /*********
        ** 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;
        }
    }
}