Class CustomActionAttribute
Declares the registration data of a CustomAction. Required on every type passed to RegisterAction<T>(MonsterType, uint, IReadOnlyDictionary<int, Delegate>?).
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class CustomActionAttribute : Attribute
- Inheritance
-
CustomActionAttribute
- Inherited Members
Constructors
CustomActionAttribute(string)
Declares the registration data of a CustomAction. Required on every type passed to RegisterAction<T>(MonsterType, uint, IReadOnlyDictionary<int, Delegate>?).
public CustomActionAttribute(string name)
Parameters
namestringThe name of the action. Has no effect on functionality.
Properties
BaseActionId
The id of the action to use as a base for the custom action. Ignored if BaseDti is set.
public int BaseActionId { get; set; }
Property Value
BaseDti
The name of the DTI of the action to use as a base for the custom action, e.g. "nActEm001::AdjustBite". Use this if the action you want to use as a base belongs to a different monster. If you set this, BaseActionId is ignored.
public string? BaseDti { get; set; }
Property Value
Flags
The flags of the action. -1 to inherit them from the base action.
public int Flags { get; set; }
Property Value
Name
The name of the action. Has no effect on functionality.
public string Name { get; }