Class PatchClassProcessor
A PatchClassProcessor used to turn HarmonyAttribute on a class/type into patches
Inheritance
System.Object
PatchClassProcessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public class PatchClassProcessor
Constructors
| Improve this Doc View SourcePatchClassProcessor(Harmony, Type)
Creates a patch class processor by pointing out a class. Similar to PatchAll() but without searching through all classes.
Declaration
public PatchClassProcessor(Harmony instance, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Harmony | instance | The Harmony instance |
| System.Type | type | The class to process (need to have at least a [HarmonyPatch] attribute) |
Methods
| Improve this Doc View SourcePatch()
Applies the patches
Declaration
public List<MethodInfo> Patch()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Reflection.MethodInfo> | A list of all created replacement methods or null if patch class is not annotated |