Table of Contents

Class CustomActionAttribute

Namespace
SharpPluginLoader.Core.Actions
Assembly
SharpPluginLoader.Core.dll

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

name string

The 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

int

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

string

Flags

The flags of the action. -1 to inherit them from the base action.

public int Flags { get; set; }

Property Value

int

Name

The name of the action. Has no effect on functionality.

public string Name { get; }

Property Value

string