Class Patcher
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
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
Methods
Patch(IExiledEvent)
Patches all events that target a specific IExiledEvent.
public void Patch(IExiledEvent @event)
Parameters
event
IExiledEventThe IExiledEvent all matching patches should target.
PatchAll(bool, out int)
Patches all events.
public void PatchAll(bool includeEvents, out int failedPatch)
Parameters
includeEvents
boolWhether to patch events as well as all required patches.
failedPatch
intthe 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()