using System; namespace StardewModdingAPI.Events { public static class TimeEvents { public static event EventHandler TimeOfDayChanged = delegate { }; public static event EventHandler DayOfMonthChanged = delegate { }; public static event EventHandler YearOfGameChanged = delegate { }; public static event EventHandler SeasonOfYearChanged = delegate { }; public static void InvokeTimeOfDayChanged(Int32 priorInt, Int32 newInt) { TimeOfDayChanged.Invoke(null, new EventArgsIntChanged(priorInt, newInt)); } public static void InvokeDayOfMonthChanged(Int32 priorInt, Int32 newInt) { DayOfMonthChanged.Invoke(null, new EventArgsIntChanged(priorInt, newInt)); } public static void InvokeYearOfGameChanged(Int32 priorInt, Int32 newInt) { YearOfGameChanged.Invoke(null, new EventArgsIntChanged(priorInt, newInt)); } public static void InvokeSeasonOfYearChanged(String priorString, String newString) { SeasonOfYearChanged.Invoke(null, new EventArgsStringChanged(priorString, newString)); } } }