diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-03-23 01:06:11 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-03-23 01:06:11 -0400 |
commit | 584725bb8e554e314843315facca1fd15868bee4 (patch) | |
tree | fdb4ecc4a9f190e7e4018fc3334ad8a4bec53e6d /src/SMAPI/Framework/Events/EventManager.cs | |
parent | b07d2340a9a6da22ee0fd95f2c6ccca3939cb7ab (diff) | |
download | SMAPI-584725bb8e554e314843315facca1fd15868bee4.tar.gz SMAPI-584725bb8e554e314843315facca1fd15868bee4.tar.bz2 SMAPI-584725bb8e554e314843315facca1fd15868bee4.zip |
add initial AssetRequested content event (#766)
Diffstat (limited to 'src/SMAPI/Framework/Events/EventManager.cs')
-rw-r--r-- | src/SMAPI/Framework/Events/EventManager.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Events/EventManager.cs b/src/SMAPI/Framework/Events/EventManager.cs index fa4d564d..8142f00e 100644 --- a/src/SMAPI/Framework/Events/EventManager.cs +++ b/src/SMAPI/Framework/Events/EventManager.cs @@ -11,6 +11,13 @@ namespace StardewModdingAPI.Framework.Events ** Events *********/ /**** + ** Content + ****/ + /// <inheritdoc cref="IContentEvents.AssetRequested" /> + public readonly ManagedEvent<AssetRequestedEventArgs> AssetRequested; + + + /**** ** Display ****/ /// <inheritdoc cref="IDisplayEvents.MenuChanged" /> @@ -189,7 +196,9 @@ namespace StardewModdingAPI.Framework.Events return new ManagedEvent<TEventArgs>($"{typeName}.{eventName}", modRegistry, isPerformanceCritical); } - // init events (new) + // init events + this.AssetRequested = ManageEventOf<AssetRequestedEventArgs>(nameof(IModEvents.Content), nameof(IContentEvents.AssetRequested)); + this.MenuChanged = ManageEventOf<MenuChangedEventArgs>(nameof(IModEvents.Display), nameof(IDisplayEvents.MenuChanged)); this.Rendering = ManageEventOf<RenderingEventArgs>(nameof(IModEvents.Display), nameof(IDisplayEvents.Rendering), isPerformanceCritical: true); this.Rendered = ManageEventOf<RenderedEventArgs>(nameof(IModEvents.Display), nameof(IDisplayEvents.Rendered), isPerformanceCritical: true); |