diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-06 00:51:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-06 00:51:45 -0400 |
commit | 79705448f57c962e9331fb802097c24d2424476c (patch) | |
tree | 06b15229f7f9089af864fa0f948f209bc5aec51a /src/SMAPI/Events | |
parent | 14fab29370310a762a000c50b23075326b4e95da (diff) | |
download | SMAPI-79705448f57c962e9331fb802097c24d2424476c.tar.gz SMAPI-79705448f57c962e9331fb802097c24d2424476c.tar.bz2 SMAPI-79705448f57c962e9331fb802097c24d2424476c.zip |
add DayEnding event (#310)
Diffstat (limited to 'src/SMAPI/Events')
-rw-r--r-- | src/SMAPI/Events/DayEndingEventArgs.cs | 7 | ||||
-rw-r--r-- | src/SMAPI/Events/IGameLoopEvents.cs | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/SMAPI/Events/DayEndingEventArgs.cs b/src/SMAPI/Events/DayEndingEventArgs.cs new file mode 100644 index 00000000..5cb433bc --- /dev/null +++ b/src/SMAPI/Events/DayEndingEventArgs.cs @@ -0,0 +1,7 @@ +using System; + +namespace StardewModdingAPI.Events +{ + /// <summary>Event arguments for an <see cref="IGameLoopEvents.DayEnding"/> event.</summary> + public class DayEndingEventArgs : EventArgs { } +} diff --git a/src/SMAPI/Events/IGameLoopEvents.cs b/src/SMAPI/Events/IGameLoopEvents.cs index 165aa0ce..5f531ba7 100644 --- a/src/SMAPI/Events/IGameLoopEvents.cs +++ b/src/SMAPI/Events/IGameLoopEvents.cs @@ -31,5 +31,8 @@ namespace StardewModdingAPI.Events /// <summary>Raised after the game begins a new day (including when the player loads a save).</summary> event EventHandler<DayStartedEventArgs> DayStarted; + + /// <summary>Raised before the game ends the current day. This happens before it starts setting up the next day and before <see cref="Saving"/>.</summary> + event EventHandler<DayEndingEventArgs> DayEnding; } } |