Class Patcher
A tool for patching.
Inheritance
System.Object
Patcher
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.Features
Assembly: Exiled.Events.dll
Syntax
public class Patcher
Properties
| Improve this Doc View SourceDisabledPatchesHashSet
Gets a set of types and methods for which EXILED patches should not be run.
Declaration
public static HashSet<MethodBase> DisabledPatchesHashSet { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.Reflection.MethodBase> |
Harmony
Gets the
Declaration
public Harmony Harmony { get; }
Property Value
Type | Description |
---|---|
Harmony |
UnpatchedTypes
Gets a System.Collections.Generic.HashSet<T> that contains all patch types that haven't been patched.
Declaration
public static HashSet<Type> UnpatchedTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.Type> |
Methods
| Improve this Doc View SourcePatch(IExiledEvent)
Patches all events that target a specific IExiledEvent.
Declaration
public void Patch(IExiledEvent event)
Parameters
Type | Name | Description |
---|---|---|
IExiledEvent | event | The IExiledEvent all matching patches should target. |
PatchAll(Boolean, out Int32)
Patches all events.
Declaration
public void PatchAll(bool includeEvents, out int failedPatch)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | includeEvents | Whether to patch events as well as all required patches. |
System.Int32 | failedPatch | 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.
Declaration
public void ReloadDisabledPatches()
UnpatchAll()
Unpatches all events.
Declaration
public void UnpatchAll()