diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-06 21:45:03 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-06 21:45:03 -0400 |
commit | cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44 (patch) | |
tree | f5eb9c233aeaa44b9d0c22278b86c5648d5ac393 /src/SMAPI/Framework/Patching/IHarmonyPatch.cs | |
parent | 9e525533e10ade49c733a34373e0fb749748918e (diff) | |
download | SMAPI-cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44.tar.gz SMAPI-cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44.tar.bz2 SMAPI-cd62dcc8cfa35a9b423f4d15359ec3083b4c6d44.zip |
add simple Harmony wrapper for validation, error-handling, etc (#541)
Diffstat (limited to 'src/SMAPI/Framework/Patching/IHarmonyPatch.cs')
-rw-r--r-- | src/SMAPI/Framework/Patching/IHarmonyPatch.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Patching/IHarmonyPatch.cs b/src/SMAPI/Framework/Patching/IHarmonyPatch.cs new file mode 100644 index 00000000..cb42f40e --- /dev/null +++ b/src/SMAPI/Framework/Patching/IHarmonyPatch.cs @@ -0,0 +1,15 @@ +using Harmony; + +namespace StardewModdingAPI.Framework.Patching +{ + /// <summary>A Harmony patch to apply.</summary> + internal interface IHarmonyPatch + { + /// <summary>A unique name for this patch.</summary> + string Name { get; } + + /// <summary>Apply the Harmony patch.</summary> + /// <param name="harmony">The Harmony instance.</param> + void Apply(HarmonyInstance harmony); + } +} |