summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsLoadedGameChanged.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsLoadedGameChanged.cs')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsLoadedGameChanged.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsLoadedGameChanged.cs b/src/StardewModdingAPI/Events/EventArgsLoadedGameChanged.cs
new file mode 100644
index 00000000..688b4b3d
--- /dev/null
+++ b/src/StardewModdingAPI/Events/EventArgsLoadedGameChanged.cs
@@ -0,0 +1,27 @@
+#if SMAPI_1_x
+using System;
+
+namespace StardewModdingAPI.Events
+{
+ /// <summary>Event arguments for a <see cref="PlayerEvents.LoadedGame"/> event.</summary>
+ public class EventArgsLoadedGameChanged : EventArgs
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>Whether the save has been loaded. This is always true.</summary>
+ public bool LoadedGame { get; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="loaded">Whether the save has been loaded. This is always true.</param>
+ public EventArgsLoadedGameChanged(bool loaded)
+ {
+ this.LoadedGame = loaded;
+ }
+ }
+}
+#endif \ No newline at end of file