mirror of
https://github.com/pardeike/Harmony
synced 2026-06-08 16:40:38 +00:00
19 lines
283 B
C#
19 lines
283 B
C#
namespace Annotations_Basics
|
|
{
|
|
// <example>
|
|
using HarmonyLib;
|
|
|
|
[HarmonyPatch(typeof(SomeTypeHere))]
|
|
[HarmonyPatch("SomeMethodName")] // if possible use nameof() here
|
|
class MyPatches
|
|
{
|
|
static void Postfix(/*...*/)
|
|
{
|
|
//...
|
|
}
|
|
}
|
|
// </example>
|
|
|
|
class SomeTypeHere { }
|
|
}
|