Class SignatureAttribute
The main way to use SignatureHelper. Apply this attribute to any field/property that should make use of a signature. See the field documentation for more information.
Inheritance
Inherited Members
Namespace: Dalamud.Utility.Signatures
Assembly: Dalamud.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
[MeansImplicitUse(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.Default)]
public sealed class SignatureAttribute : Attribute
Constructors
| Improve this Doc View SourceSignatureAttribute(String)
Initializes a new instance of the SignatureAttribute class.
Declaration
public SignatureAttribute(string signature)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | signature | signature to scan for, see Signature. |
Properties
| Improve this Doc View SourceDetourName
Gets the detour name if this signature is for a hook. SignatureHelper will search the type containing this field/property for a method that matches the hook's delegate type, but if it doesn't find one or finds more than one, it will fail. You can specify the name of the method here to avoid this.
Declaration
public string DetourName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Fallibility
Gets the fallibility of the signature. When a signature is fallible, any errors while resolving it will be logged in the Dalamud log and the field/property will not have its value set. When a signature is not fallible, any errors will be thrown as exceptions instead. If fallibility is not specified, it is inferred based on if the field/property is nullable.
Declaration
public Fallibility Fallibility { get; set; }
Property Value
| Type | Description |
|---|---|
| Fallibility |
Offset
Gets the offset from the signature to read memory from, when UseFlags is set to Offset.
Declaration
public int Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ScanType
Gets the type of scan to perform. By default, this scans the text section of the executable, but this should be set to StaticAddress for static addresses.
Declaration
public ScanType ScanType { get; set; }
Property Value
| Type | Description |
|---|---|
| ScanType |
Signature
Gets the memory signature for this field/property.
Declaration
public string Signature { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UseFlags
Gets the way this signature should be used. By default, this is guessed using simple heuristics, but it can be manually specified if SignatureHelper can't figure it out.
Declaration
public SignatureUseFlags UseFlags { get; set; }
Property Value
| Type | Description |
|---|---|
| SignatureUseFlags |