diff options
Diffstat (limited to 'StardewModdingAPI/Events.cs')
-rw-r--r-- | StardewModdingAPI/Events.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events.cs b/StardewModdingAPI/Events.cs index 05cabc4b..9a92b705 100644 --- a/StardewModdingAPI/Events.cs +++ b/StardewModdingAPI/Events.cs @@ -39,6 +39,9 @@ namespace StardewModdingAPI public static event EventHandler Resize = delegate { }; + public delegate void FarmerChangedD(Farmer newFarmer); + public static event FarmerChangedD FarmerChanged = delegate { }; + public static void InvokeGameLoaded() { GameLoaded.Invoke(); @@ -126,5 +129,10 @@ namespace StardewModdingAPI { Resize.Invoke(sender, e); } + + public static void InvokeFarmerChanged(Farmer newFarmer) + { + FarmerChanged.Invoke(newFarmer); + } } } |