summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events
diff options
context:
space:
mode:
Diffstat (limited to 'StardewModdingAPI/Events')
-rw-r--r--StardewModdingAPI/Events/Time.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Time.cs b/StardewModdingAPI/Events/Time.cs
index 56b23dc3..339cd560 100644
--- a/StardewModdingAPI/Events/Time.cs
+++ b/StardewModdingAPI/Events/Time.cs
@@ -8,6 +8,7 @@ namespace StardewModdingAPI.Events
public static event EventHandler<EventArgsIntChanged> DayOfMonthChanged = delegate { };
public static event EventHandler<EventArgsIntChanged> YearOfGameChanged = delegate { };
public static event EventHandler<EventArgsStringChanged> SeasonOfYearChanged = delegate { };
+ public static event EventHandler OnNewDay = delegate { };
public static void InvokeTimeOfDayChanged(int priorInt, int newInt)
{
@@ -28,5 +29,10 @@ namespace StardewModdingAPI.Events
{
SeasonOfYearChanged.Invoke(null, new EventArgsStringChanged(priorString, newString));
}
+
+ public static void InvokeOnNewDay(int priorInt, int newInt)
+ {
+ OnNewDay.Invoke(null, new EventArgsIntChanged(priorInt, newInt));
+ }
}
} \ No newline at end of file