summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Patching/IHarmonyPatch.cs
blob: cb42f40ee787e8cb007943c178d10349f48ee4ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
    }
}