summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/ContentEventHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Events/ContentEventHandler.cs')
-rw-r--r--src/StardewModdingAPI/Events/ContentEventHandler.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Events/ContentEventHandler.cs b/src/StardewModdingAPI/Events/ContentEventHandler.cs
new file mode 100644
index 00000000..2a7e75d1
--- /dev/null
+++ b/src/StardewModdingAPI/Events/ContentEventHandler.cs
@@ -0,0 +1,8 @@
+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);
+}