From 863b6cb0448f1dfdca69e14e018c4820f3075b81 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 27 Mar 2016 03:52:43 -0400 Subject: holy fucking shit fuck my life --- StardewModdingAPI/Events/Time.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'StardewModdingAPI/Events') 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 DayOfMonthChanged = delegate { }; public static event EventHandler YearOfGameChanged = delegate { }; public static event EventHandler 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 -- cgit