Browse documentation

Class PatchInfo

Namespace
HarmonyLib
Assembly
0Harmony.dll

Serializable patch information

public class PatchInfo
Inheritance
object
PatchInfo

Constructors

PatchInfo()

public PatchInfo()

Fields

VersionCount

Number of replacements created

public int VersionCount

Field Value

int

finalizers

Finalizers as an array of Patch

public Patch[] finalizers

Field Value

Patch[]

innerfinalizers

Inner finalizers as an array of patches

[OptionalField]
public Patch[] innerfinalizers

Field Value

Patch[]

innerpostfixes

InnerPostfixes as an array of Patch

[OptionalField]
public Patch[] innerpostfixes

Field Value

Patch[]

innerprefixes

InnerPrefixes as an array of Patch

[OptionalField]
public Patch[] innerprefixes

Field Value

Patch[]

postfixes

Postfixes as an array of Patch

public Patch[] postfixes

Field Value

Patch[]

prefixes

Prefixes as an array of Patch

public Patch[] prefixes

Field Value

Patch[]

transpilers

Transpilers as an array of Patch

public Patch[] transpilers

Field Value

Patch[]

Properties

Debugging

Returns if any of the patches wants debugging turned on

public bool Debugging { get; }

Property Value

bool

Methods

RemoveFinalizer(string)

Removes finalizers

public void RemoveFinalizer(string owner)

Parameters

owner string

The owner of the finalizers, or * for all

RemoveInnerFinalizer(string)

Removes inner finalizers

public void RemoveInnerFinalizer(string owner)

Parameters

owner string

The owner, or * for all owners

RemoveInnerPostfix(string)

Removes inner postfixes

public void RemoveInnerPostfix(string owner)

Parameters

owner string

The owner of the inner postfixes, or * for all

RemoveInnerPrefix(string)

Removes inner prefixes

public void RemoveInnerPrefix(string owner)

Parameters

owner string

The owner of the inner prefixes, or * for all

RemovePatch(MethodInfo)

Removes a patch using its method

public void RemovePatch(MethodInfo patch)

Parameters

patch MethodInfo

The method of the patch to remove

RemovePostfix(string)

Removes postfixes

public void RemovePostfix(string owner)

Parameters

owner string

The owner of the postfixes, or * for all

RemovePrefix(string)

Removes prefixes

public void RemovePrefix(string owner)

Parameters

owner string

The owner of the prefixes, or * for all

RemoveTranspiler(string)

Removes transpilers

public void RemoveTranspiler(string owner)

Parameters

owner string

The owner of the transpilers, or * for all

Harmony 3 preview

For the stable release, read the 2.x documentation.