Back to Harmony

Class Patches

docs/api/HarmonyLib.Patches.html

2.4.2.03.3 KB
Original Source

Class Patches

A group of patches

Inheritance

System.Object

Patches

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

Constructors

Patches(Patch[], Patch[], Patch[], Patch[], Patch[], Patch[])

Creates a group of patches

Declaration
public Patches(Patch[] prefixes, Patch[] postfixes, Patch[] transpilers, Patch[] finalizers, Patch[] innerprefixes, Patch[] innerpostfixes)
Parameters
TypeNameDescription
Patch[]prefixes

An array of prefixes as Patch

| | Patch[] | postfixes |

An array of postfixes as Patch

| | Patch[] | transpilers |

An array of transpileres as Patch

| | Patch[] | finalizers |

An array of finalizeres as Patch

| | Patch[] | innerprefixes |

An array of inner prefixes as Patch

| | Patch[] | innerpostfixes |

An array of inner postfixes as Patch

|

Fields

Finalizers

A collection of finalizer Patch

Declaration
public readonly ReadOnlyCollection<Patch> Finalizers
Field Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection<Patch>

InnerPostfixes

A collection of inner postfix Patch

Declaration
public readonly ReadOnlyCollection<Patch> InnerPostfixes
Field Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection<Patch>

InnerPrefixes

A collection of inner prefix Patch

Declaration
public readonly ReadOnlyCollection<Patch> InnerPrefixes
Field Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection<Patch>

Postfixes

A collection of postfix Patch

Declaration
public readonly ReadOnlyCollection<Patch> Postfixes
Field Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection<Patch>

Prefixes

A collection of prefix Patch

Declaration
public readonly ReadOnlyCollection<Patch> Prefixes
Field Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection<Patch>

Transpilers

A collection of transpiler Patch

Declaration
public readonly ReadOnlyCollection<Patch> Transpilers
Field Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection<Patch>

Properties

Owners

Gets all owners (Harmony IDs) or all known patches

Declaration
public ReadOnlyCollection<string> Owners { get; }
Property Value
TypeDescription
System.Collections.ObjectModel.ReadOnlyCollection\

The patch owners

|