Class GlobalPatchProcessor
A
Inheritance
System.Object
GlobalPatchProcessor
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.API.Features
Assembly: Exiled.API.dll
Syntax
public class GlobalPatchProcessor
Properties
| Improve this Doc View SourcePatchedGroupMethods
Gets all the patched methods and their relative patch group.
Declaration
public static IReadOnlyDictionary<MethodBase, HashSet<string>> PatchedGroupMethods { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.Reflection.MethodBase, System.Collections.Generic.HashSet<System.String>> |
PatchedMethods
Gets all the patched methods.
Declaration
public static IEnumerable<MethodBase> PatchedMethods { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Reflection.MethodBase> |
Methods
| Improve this Doc View SourcePatchAll(Harmony, out Int32)
Patch all your Harmony and return you the number of failed patch.
Declaration
public static void PatchAll(Harmony harmony, out int failedPatch)
Parameters
Type | Name | Description |
---|---|---|
Harmony | harmony | The Harmony instance to Patch. |
System.Int32 | failedPatch | The number of failed patch. |
PatchAll(String, String)
Searches the current assembly for Harmony annotations and uses them to create patches.
It supports target-patching using PatchGroupAttribute and the relative groupId
.
Declaration
public static Harmony PatchAll(string id = "", string groupId = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Harmony instance id. |
System.String | groupId | The target group to include. |
Returns
Type | Description |
---|---|
Harmony | The |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when the GroupId is null or empty. |
UnpatchAll(String, String)
Unpatches methods by patching them with zero patches.
Declaration
public static void UnpatchAll(string id = "", string groupId = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Harmony instance id. |
System.String | groupId | The target group to include. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when the GroupId is null or empty. |