summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsFarmerChanged.cs
blob: 273f9d25219feb89b8e73a7b7e69502e17032bd7 (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 StardewValley;

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 Farmer NewFarmer { get; }

        /// <summary>The new player character.</summary>
        public Farmer 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(Farmer priorFarmer, Farmer newFarmer)
        {
            this.PriorFarmer = priorFarmer;
            this.NewFarmer = newFarmer;
        }
    }
}