blob: 180e9d7821e91b4b4c71ba8370089a63b91726ac (
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
36
37
38
39
40
41
42
43
|
using System;
using Microsoft.Xna.Framework;
#if STARDEW_VALLEY_1_3
using System.Collections.Generic;
using Netcode;
#else
using StardewValley;
#endif
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>
#if STARDEW_VALLEY_1_3
public IDictionary<Vector2, NetRef<Object>> NewObjects { get; }
#else
public SerializableDictionary<Vector2, Object> NewObjects { get; }
#endif
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="newObjects">The current list of objects in the current location.</param>
public EventArgsLocationObjectsChanged(
#if STARDEW_VALLEY_1_3
IDictionary<Vector2, NetRef<Object>> newObjects
#else
SerializableDictionary<Vector2, Object> newObjects
#endif
)
{
this.NewObjects = newObjects;
}
}
}
|