summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsIntChanged.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsIntChanged.cs')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsIntChanged.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsIntChanged.cs b/src/StardewModdingAPI/Events/EventArgsIntChanged.cs
new file mode 100644
index 00000000..0c742d12
--- /dev/null
+++ b/src/StardewModdingAPI/Events/EventArgsIntChanged.cs
@@ -0,0 +1,29 @@
+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;
+ }
+ }
+}