summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsIntChanged.cs
blob: 76ec6d0830e7d9e60bda43d8fc07ecd557e12a45 (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
#if !SMAPI_3_0_STRICT
using System;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for an integer field that changed value.</summary>
    public class EventArgsIntChanged : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The previous value.</summary>
        public int PriorInt { get; }

        /// <summary>The current value.</summary>
        public int NewInt { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="priorInt">The previous value.</param>
        /// <param name="newInt">The current value.</param>
        public EventArgsIntChanged(int priorInt, int newInt)
        {
            this.PriorInt = priorInt;
            this.NewInt = newInt;
        }
    }
}
#endif