summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsStringChanged.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsStringChanged.cs')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsStringChanged.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsStringChanged.cs b/src/StardewModdingAPI/Events/EventArgsStringChanged.cs
new file mode 100644
index 00000000..f580a2ce
--- /dev/null
+++ b/src/StardewModdingAPI/Events/EventArgsStringChanged.cs
@@ -0,0 +1,31 @@
+#if SMAPI_1_x
+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 \ No newline at end of file