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