diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-08 21:36:48 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-08 21:36:48 -0400 |
commit | 96c49021a1d943e2ade7dbb96be3de707d7665c9 (patch) | |
tree | 7400a0c0ab4e84fdcdd420367af62729ffc491b0 /src/SMAPI/Framework/Patching/IHarmonyPatch.cs | |
parent | f79431d6549e9fb447e295aa026a8eba8f5f1ba4 (diff) | |
parent | dd7887e0beb94179886494d40359b02db8e6dbe4 (diff) | |
download | SMAPI-96c49021a1d943e2ade7dbb96be3de707d7665c9.tar.gz SMAPI-96c49021a1d943e2ade7dbb96be3de707d7665c9.tar.bz2 SMAPI-96c49021a1d943e2ade7dbb96be3de707d7665c9.zip |
Merge branch 'add-harmony' into develop
# Conflicts:
# docs/release-notes.md
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); + } +} |