summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events.cs
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-02 22:54:37 -0500
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-02 22:54:37 -0500
commit47fecbd81eeecd9244ee2384f99bc224d5475029 (patch)
treea209ac7178474fc7c97b950471618edbb298d1bc /StardewModdingAPI/Events.cs
parent5a33d4c7f2f136fdd821ab46e2a44325e4559627 (diff)
downloadSMAPI-47fecbd81eeecd9244ee2384f99bc224d5475029.tar.gz
SMAPI-47fecbd81eeecd9244ee2384f99bc224d5475029.tar.bz2
SMAPI-47fecbd81eeecd9244ee2384f99bc224d5475029.zip
more events
Diffstat (limited to 'StardewModdingAPI/Events.cs')
-rw-r--r--StardewModdingAPI/Events.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events.cs b/StardewModdingAPI/Events.cs
index 9a92b705..97e55d8d 100644
--- a/StardewModdingAPI/Events.cs
+++ b/StardewModdingAPI/Events.cs
@@ -42,6 +42,14 @@ namespace StardewModdingAPI
public delegate void FarmerChangedD(Farmer newFarmer);
public static event FarmerChangedD FarmerChanged = delegate { };
+ public delegate void IntChanged(Int32 newInt);
+ public static event IntChanged TimeOfDayChanged = delegate { };
+ public static event IntChanged DayOfMonthChanged = delegate { };
+ public static event IntChanged YearOfGameChanged = delegate { };
+
+ public delegate void StringChanged(String newString);
+ public static event StringChanged SeasonOfYearChanged = delegate { };
+
public static void InvokeGameLoaded()
{
GameLoaded.Invoke();
@@ -134,5 +142,25 @@ namespace StardewModdingAPI
{
FarmerChanged.Invoke(newFarmer);
}
+
+ public static void InvokeTimeOfDayChanged(Int32 newInt)
+ {
+ TimeOfDayChanged.Invoke(newInt);
+ }
+
+ public static void InvokeDayOfMonthChanged(Int32 newInt)
+ {
+ DayOfMonthChanged.Invoke(newInt);
+ }
+
+ public static void InvokeYearOfGameChanged(Int32 newInt)
+ {
+ YearOfGameChanged.Invoke(newInt);
+ }
+
+ public static void InvokeSeasonOfYearChanged(String newString)
+ {
+ SeasonOfYearChanged.Invoke(newString);
+ }
}
}