summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsLocationsChanged.cs
blob: 1a59e61233c5c055b20611700c0c5d21da670c5c (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
28
29
30
31
32
33
34
35
#if !SMAPI_3_0_STRICT
using System;
using System.Collections.Generic;
using System.Linq;
using StardewValley;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for a <see cref="LocationEvents.LocationsChanged"/> event.</summary>
    public class EventArgsLocationsChanged : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The added locations.</summary>
        public IEnumerable<GameLocation> Added { get; }

        /// <summary>The removed locations.</summary>
        public IEnumerable<GameLocation> Removed { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="added">The added locations.</param>
        /// <param name="removed">The removed locations.</param>
        public EventArgsLocationsChanged(IEnumerable<GameLocation> added, IEnumerable<GameLocation> removed)
        {
            this.Added = added.ToArray();
            this.Removed = removed.ToArray();
        }
    }
}
#endif