summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsStringChanged.cs
blob: 1498cb716e988d3c0c9fe193e356db6f7cb0c8e9 (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
#if !SMAPI_2_0
using System;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for a string field that changed value.</summary>
    public class EventArgsStringChanged : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The previous value.</summary>
        public string NewString { get; }

        /// <summary>The current value.</summary>
        public string PriorString { get; }

        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="priorString">The previous value.</param>
        /// <param name="newString">The current value.</param>
        public EventArgsStringChanged(string priorString, string newString)
        {
            this.NewString = newString;
            this.PriorString = priorString;
        }
    }
}
#endif