summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsLocationObjectsChanged.cs
blob: de6bd3653fdaabac6e79092b7c41752e4e4954db (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
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Netcode;
using Object = StardewValley.Object;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for a <see cref="LocationEvents.LocationObjectsChanged"/> event.</summary>
    public class EventArgsLocationObjectsChanged : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The current list of objects in the current location.</summary>
        public IDictionary<Vector2, NetRef<Object>> NewObjects { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="newObjects">The current list of objects in the current location.</param>
        public EventArgsLocationObjectsChanged(IDictionary<Vector2, NetRef<Object>> newObjects)
        {
            this.NewObjects = newObjects;
        }
    }
}