Table of Contents

Class Patcher

Namespace
Exiled.Events.Features
Assembly
Exiled.Events.dll

A tool for patching.

public class Patcher
Inheritance
Patcher
Inherited Members
Extension Methods

Properties

DisabledPatchesHashSet

Gets a set of types and methods for which EXILED patches should not be run.

public static HashSet<MethodBase> DisabledPatchesHashSet { get; }

Property Value

HashSet<MethodBase>

Harmony

Gets the HarmonyLib.Harmony instance.

public Harmony Harmony { get; }

Property Value

Harmony

UnpatchedTypes

Gets a HashSet<T> that contains all patch types that haven't been patched.

public static HashSet<Type> UnpatchedTypes { get; }

Property Value

HashSet<Type>

Methods

Patch(IExiledEvent)

Patches all events that target a specific IExiledEvent.

public void Patch(IExiledEvent @event)

Parameters

event IExiledEvent

The IExiledEvent all matching patches should target.

PatchAll(bool, out int)

Patches all events.

public void PatchAll(bool includeEvents, out int failedPatch)

Parameters

includeEvents bool

Whether to patch events as well as all required patches.

failedPatch int

the number of failed patch returned.

ReloadDisabledPatches()

Checks the DisabledPatchesHashSet list and un-patches any methods that have been defined there. Once un-patching has been done, they can be patched by plugins, but will not be re-patchable by Exiled until a server reboot.

public void ReloadDisabledPatches()

UnpatchAll()

Unpatches all events.

public void UnpatchAll()