diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-14 18:16:44 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-14 18:16:44 -0400 |
commit | 307304a03edb82f3a1f5cfa6c47cb17687560ccb (patch) | |
tree | fdd46e84bac0d05e4eafdbb4f05d8c5c70507a7b /src/StardewModdingAPI/Events | |
parent | 06871a0603fa59ca6734fd913e118a4fe4a4c64c (diff) | |
download | SMAPI-307304a03edb82f3a1f5cfa6c47cb17687560ccb.tar.gz SMAPI-307304a03edb82f3a1f5cfa6c47cb17687560ccb.tar.bz2 SMAPI-307304a03edb82f3a1f5cfa6c47cb17687560ccb.zip |
revert all projects except installer to .NET Framework 4.5
This caused obscure invalid-IL crashes when compiled through MonoDevelop on Linux.
Diffstat (limited to 'src/StardewModdingAPI/Events')
-rw-r--r-- | src/StardewModdingAPI/Events/ContentEventHandler.cs | 8 | ||||
-rw-r--r-- | src/StardewModdingAPI/Events/ContentEvents.cs | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/StardewModdingAPI/Events/ContentEventHandler.cs b/src/StardewModdingAPI/Events/ContentEventHandler.cs deleted file mode 100644 index 2a7e75d1..00000000 --- a/src/StardewModdingAPI/Events/ContentEventHandler.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace StardewModdingAPI.Events -{ - /// <summary>Represents a method that will handle a content event.</summary> - /// <param name="sender">The source of the event.</param> - /// <param name="e">The event arguments.</param> - /// <remarks>This deviates from <see cref="System.EventHandler{T}"/> in allowing <c>T</c> to be an interface instead of a concrete class. While .NET Framework 4.5 allows that, the current .NET Framework 4.0 targeted by SMAPI to improve compatibility does not.</remarks> - public delegate void ContentEventHandler(object sender, IContentEventHelper e); -} diff --git a/src/StardewModdingAPI/Events/ContentEvents.cs b/src/StardewModdingAPI/Events/ContentEvents.cs index 339e90fd..9418673a 100644 --- a/src/StardewModdingAPI/Events/ContentEvents.cs +++ b/src/StardewModdingAPI/Events/ContentEvents.cs @@ -28,7 +28,7 @@ namespace StardewModdingAPI.Events public static event EventHandler<EventArgsValueChanged<string>> AfterLocaleChanged; /// <summary>Raised when an XNB file is being read into the cache. Mods can change the data here before it's cached.</summary> - internal static event ContentEventHandler AfterAssetLoaded; + internal static event EventHandler<IContentEventHelper> AfterAssetLoaded; /********* |