diff options
author | ClxS <slxxls92@gmail.com> | 2016-03-04 14:05:36 +0000 |
---|---|---|
committer | ClxS <slxxls92@gmail.com> | 2016-03-04 14:05:36 +0000 |
commit | afef5648ca512d0c151a87becbb85cd14494717b (patch) | |
tree | ac6a43b303193918538306a04e45498327411df3 /StardewModdingAPI/Events/Menu.cs | |
parent | ec81b3306e0a84dbc842bbf8724354db037f24bf (diff) | |
download | SMAPI-afef5648ca512d0c151a87becbb85cd14494717b.tar.gz SMAPI-afef5648ca512d0c151a87becbb85cd14494717b.tar.bz2 SMAPI-afef5648ca512d0c151a87becbb85cd14494717b.zip |
Refactored all of the events into their own categories
Diffstat (limited to 'StardewModdingAPI/Events/Menu.cs')
-rw-r--r-- | StardewModdingAPI/Events/Menu.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Menu.cs b/StardewModdingAPI/Events/Menu.cs new file mode 100644 index 00000000..0819fb20 --- /dev/null +++ b/StardewModdingAPI/Events/Menu.cs @@ -0,0 +1,19 @@ +using StardewValley.Menus;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace StardewModdingAPI.Events
+{
+ public static class MenuEvents
+ {
+ public static event EventHandler<EventArgsClickableMenuChanged> MenuChanged = delegate { };
+
+ public static void InvokeMenuChanged(IClickableMenu priorMenu, IClickableMenu newMenu)
+ {
+ MenuChanged.Invoke(null, new EventArgsClickableMenuChanged(priorMenu, newMenu));
+ }
+ }
+}
|