summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Player.cs
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-04 14:05:36 +0000
committerClxS <slxxls92@gmail.com>2016-03-04 14:05:36 +0000
commitafef5648ca512d0c151a87becbb85cd14494717b (patch)
treeac6a43b303193918538306a04e45498327411df3 /StardewModdingAPI/Events/Player.cs
parentec81b3306e0a84dbc842bbf8724354db037f24bf (diff)
downloadSMAPI-afef5648ca512d0c151a87becbb85cd14494717b.tar.gz
SMAPI-afef5648ca512d0c151a87becbb85cd14494717b.tar.bz2
SMAPI-afef5648ca512d0c151a87becbb85cd14494717b.zip
Refactored all of the events into their own categories
Diffstat (limited to 'StardewModdingAPI/Events/Player.cs')
-rw-r--r--StardewModdingAPI/Events/Player.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Player.cs b/StardewModdingAPI/Events/Player.cs
new file mode 100644
index 00000000..3fa5c806
--- /dev/null
+++ b/StardewModdingAPI/Events/Player.cs
@@ -0,0 +1,19 @@
+using StardewValley;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace StardewModdingAPI.Events
+{
+ public static class PlayerEvents
+ {
+ public static event EventHandler<EventArgsFarmerChanged> FarmerChanged = delegate { };
+
+ public static void InvokeFarmerChanged(Farmer priorFarmer, Farmer newFarmer)
+ {
+ FarmerChanged.Invoke(null, new EventArgsFarmerChanged(priorFarmer, newFarmer));
+ }
+ }
+}