Enum PatchCompatibility
- Namespace
- MonkeyLoader.Patching
- Assembly
- MonkeyLoader.dll
Indicates how compatible a patch for a particular feature is with others.
Impact of the patch decreases with higher values.public enum PatchCompatibility
Fields
DebugOnly = 4
Indicates that a patch only adds something that doesn't affect the observed result.
Example: adding extra logging to a commonly misbehaving method.HookOnly = 5
Indicates that a patch only hooks the original to do something else, leaving the original functionality otherwise untouched.
Modification = 1
Indicates that a patch modifies the internal functionality of the original, affecting the observed result.
Postfix = 3
Indicates that a patch adds behavior after the original functionality has run.
This should be used if the observed result is affected.Prefix = 2
Indicates that a patch adds behavior before the original functionality runs.
This should be used if the parameters are modified or the observed result is otherwise affected.Replacement = 0
Indicates that a patch replaces the original version entirely.
HarmonyLib.HarmonyPrefixes may also fall into this category, if they always stop the original from running.