Browse documentation

Class Patches

Namespace
HarmonyLib
Assembly
0Harmony.dll

A group of patches

public class Patches
Inheritance
object
Patches

Constructors

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

Creates a group of patches

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

Parameters

prefixes Patch[]

An array of prefixes as Patch

postfixes Patch[]

An array of postfixes as Patch

transpilers Patch[]

An array of transpileres as Patch

finalizers Patch[]

An array of finalizeres as Patch

innerprefixes Patch[]

An array of inner prefixes as Patch

innerpostfixes Patch[]

An array of inner postfixes as Patch

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

Creates a group containing ordinary and inner patches

public Patches(Patch[] prefixes, Patch[] postfixes, Patch[] transpilers, Patch[] finalizers, Patch[] innerprefixes, Patch[] innerpostfixes, Patch[] innerfinalizers)

Parameters

prefixes Patch[]

Ordinary prefixes

postfixes Patch[]

Ordinary postfixes

transpilers Patch[]

Transpilers

finalizers Patch[]

Ordinary finalizers

innerprefixes Patch[]

Inner prefixes

innerpostfixes Patch[]

Inner postfixes

innerfinalizers Patch[]

Inner finalizers

Fields

Finalizers

A collection of finalizer Patch

public readonly ReadOnlyCollection<Patch> Finalizers

Field Value

ReadOnlyCollection<Patch>

InnerFinalizers

A collection of inner finalizer patches

public readonly ReadOnlyCollection<Patch> InnerFinalizers

Field Value

ReadOnlyCollection<Patch>

InnerPostfixes

A collection of inner postfix Patch

public readonly ReadOnlyCollection<Patch> InnerPostfixes

Field Value

ReadOnlyCollection<Patch>

InnerPrefixes

A collection of inner prefix Patch

public readonly ReadOnlyCollection<Patch> InnerPrefixes

Field Value

ReadOnlyCollection<Patch>

Postfixes

A collection of postfix Patch

public readonly ReadOnlyCollection<Patch> Postfixes

Field Value

ReadOnlyCollection<Patch>

Prefixes

A collection of prefix Patch

public readonly ReadOnlyCollection<Patch> Prefixes

Field Value

ReadOnlyCollection<Patch>

Transpilers

A collection of transpiler Patch

public readonly ReadOnlyCollection<Patch> Transpilers

Field Value

ReadOnlyCollection<Patch>

Properties

Owners

Gets all owners (Harmony IDs) or all known patches

public ReadOnlyCollection<string> Owners { get; }

Property Value

ReadOnlyCollection<string>

The patch owners

Harmony 3 preview

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