docs/api/HarmonyLib.PatchClassProcessor.html
A PatchClassProcessor used to turn HarmonyAttribute on a class/type into patches
System.Object
PatchClassProcessor
public class PatchClassProcessor
Creates a patch class processor by pointing out a class; similar to PatchAll() but without searching through all classes
public PatchClassProcessor(Harmony instance, Type type)
| Type | Name | Description |
|---|---|---|
| Harmony | instance |
The Harmony instance
| | System.Type | type |
The class to process
|
Name of the patch class's category
public string Category { get; set; }
| Type | Description |
|---|---|
| System.String |
Applies the patches
public List<MethodInfo> Patch()
| Type | Description |
|---|---|
| System.Collections.Generic.List\ |
A list of all created replacement methods or null if patch class is not annotated
|
REmoves the patches
public void Unpatch()