blob: 4c359939a6a03c3b3eafd5aba0114724dd220742 (
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
|
#if SMAPI_1_x
using System;
using SFarmer = StardewValley.Farmer;
namespace StardewModdingAPI.Events
{
/// <summary>Event arguments for a <see cref="PlayerEvents.FarmerChanged"/> event.</summary>
public class EventArgsFarmerChanged : EventArgs
{
/*********
** Accessors
*********/
/// <summary>The previous player character.</summary>
public SFarmer NewFarmer { get; }
/// <summary>The new player character.</summary>
public SFarmer PriorFarmer { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="priorFarmer">The previous player character.</param>
/// <param name="newFarmer">The new player character.</param>
public EventArgsFarmerChanged(SFarmer priorFarmer, SFarmer newFarmer)
{
this.PriorFarmer = priorFarmer;
this.NewFarmer = newFarmer;
}
}
}
#endif
|