Back to Harmony

Class PatchClassProcessor

docs/api/HarmonyLib.PatchClassProcessor.html

2.4.2.01.4 KB
Original Source

Class PatchClassProcessor

A PatchClassProcessor used to turn HarmonyAttribute on a class/type into patches

Inheritance

System.Object

PatchClassProcessor

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public class PatchClassProcessor

Constructors

PatchClassProcessor(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
TypeNameDescription
Harmonyinstance

The Harmony instance

| | System.Type | type |

The class to process

|

Properties

Category

Name of the patch class's category

Declaration
public string Category { get; set; }
Property Value
TypeDescription
System.String

Methods

Patch()

Applies the patches

Declaration
public List<MethodInfo> Patch()
Returns
TypeDescription
System.Collections.Generic.List\

A list of all created replacement methods or null if patch class is not annotated

|

Unpatch()

REmoves the patches

Declaration
public void Unpatch()