Class PatchDefinition
A definition of an individual patch for use by AssemblyPatcher.
Namespace: BepInEx.Preloader.Core.Patching
Assembly: BepInEx.Preloader.Core.dll
Syntax
public class PatchDefinition
Constructors
Declaration
public PatchDefinition(TargetAssemblyAttribute targetAssembly, BasePatcher instance, MethodInfo methodInfo)
Parameters
Type | Name | Description |
---|---|---|
TargetAssemblyAttribute |
targetAssembly |
|
BasePatcher |
instance |
|
System.Reflection.MethodInfo |
methodInfo |
Declaration
public PatchDefinition(TargetTypeAttribute targetType, BasePatcher instance, MethodInfo methodInfo)
Parameters
Type | Name | Description |
---|---|---|
TargetTypeAttribute |
targetType |
|
BasePatcher |
instance |
|
System.Reflection.MethodInfo |
methodInfo |
Properties
A friendly name for this patch definition, for use in logging and error tracking.
Declaration
public string FullName { get; }
Property Value
Type | Description |
---|---|
System.String |
The instance of the BasePatcher this PatchDefinition originates from.
Declaration
public BasePatcher Instance { get; }
Property Value
Type | Description |
---|---|
BasePatcher |
The method that will perform the patching logic defined by this PatchDefinition instance.
Declaration
public MethodInfo MethodInfo { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
The assembly / assemblies this patch will target, if there any.
Declaration
public TargetAssemblyAttribute TargetAssembly { get; }
Property Value
Type | Description |
---|---|
TargetAssemblyAttribute |
The type / types this patch will target, if there are any.
Declaration
public TargetTypeAttribute TargetType { get; }
Property Value
Type | Description |
---|---|
TargetTypeAttribute |