Class PatchInfo
Serializable patch information
Inheritance
System.Object
PatchInfo
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
[Serializable]
public class PatchInfo
Fields
| Improve this Doc View Sourcefinalizers
Finalizers as an array of Patch
Declaration
public Patch[] finalizers
Field Value
Type | Description |
---|---|
Patch[] |
postfixes
Postfixes as an array of Patch
Declaration
public Patch[] postfixes
Field Value
Type | Description |
---|---|
Patch[] |
prefixes
Prefixes as an array of Patch
Declaration
public Patch[] prefixes
Field Value
Type | Description |
---|---|
Patch[] |
transpilers
Transpilers as an array of Patch
Declaration
public Patch[] transpilers
Field Value
Type | Description |
---|---|
Patch[] |
Properties
| Improve this Doc View SourceDebugging
Returns if any of the patches wants debugging turned on
Declaration
public bool Debugging { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAddFinalizer(MethodInfo, String, Int32, String[], String[], Boolean)
Adds a finalizer
Declaration
[Obsolete("This method only exists for backwards compatibility since the class is public.")]
public void AddFinalizer(MethodInfo patch, string owner, int priority, string[] before, string[] after, bool debug)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | patch | |
System.String | owner | |
System.Int32 | priority | |
System.String[] | before | |
System.String[] | after | |
System.Boolean | debug |
AddPostfix(MethodInfo, String, Int32, String[], String[], Boolean)
Adds a postfix
Declaration
[Obsolete("This method only exists for backwards compatibility since the class is public.")]
public void AddPostfix(MethodInfo patch, string owner, int priority, string[] before, string[] after, bool debug)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | patch | |
System.String | owner | |
System.Int32 | priority | |
System.String[] | before | |
System.String[] | after | |
System.Boolean | debug |
AddPrefix(MethodInfo, String, Int32, String[], String[], Boolean)
Adds a prefix
Declaration
[Obsolete("This method only exists for backwards compatibility since the class is public.")]
public void AddPrefix(MethodInfo patch, string owner, int priority, string[] before, string[] after, bool debug)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | patch | |
System.String | owner | |
System.Int32 | priority | |
System.String[] | before | |
System.String[] | after | |
System.Boolean | debug |
AddTranspiler(MethodInfo, String, Int32, String[], String[], Boolean)
Adds a transpiler
Declaration
[Obsolete("This method only exists for backwards compatibility since the class is public.")]
public void AddTranspiler(MethodInfo patch, string owner, int priority, string[] before, string[] after, bool debug)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | patch | |
System.String | owner | |
System.Int32 | priority | |
System.String[] | before | |
System.String[] | after | |
System.Boolean | debug |
RemoveFinalizer(String)
Removes finalizers
Declaration
public void RemoveFinalizer(string owner)
Parameters
Type | Name | Description |
---|---|---|
System.String | owner | The owner of the finalizers, or |
RemovePatch(MethodInfo)
Removes a patch using its method
Declaration
public void RemovePatch(MethodInfo patch)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | patch | The method of the patch to remove |
RemovePostfix(String)
Removes postfixes
Declaration
public void RemovePostfix(string owner)
Parameters
Type | Name | Description |
---|---|---|
System.String | owner | The owner of the postfixes, or |
RemovePrefix(String)
Removes prefixes
Declaration
public void RemovePrefix(string owner)
Parameters
Type | Name | Description |
---|---|---|
System.String | owner | The owner of the prefixes, or |
RemoveTranspiler(String)
Removes transpilers
Declaration
public void RemoveTranspiler(string owner)
Parameters
Type | Name | Description |
---|---|---|
System.String | owner | The owner of the transpilers, or |