Table of Contents

Class ActionController

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

Represents an instance of the cActionController class.

public class ActionController : MtObject
Inheritance
ActionController
Inherited Members

Constructors

ActionController()

public ActionController()

ActionController(nint)

public ActionController(nint instance)

Parameters

instance nint

Properties

CurrentAction

The action that is currently being performed.

public ref ActionInfo CurrentAction { get; }

Property Value

ActionInfo

NextAction

The action that will be performed next.

public ref ActionInfo NextAction { get; }

Property Value

ActionInfo

Owner

The owner of this action controller.

public Entity? Owner { get; }

Property Value

Entity

PreviousAction

The action that was performed before the current one.

public ref ActionInfo PreviousAction { get; }

Property Value

ActionInfo

Methods

DoAction(int, int)

Makes the entity perform an action.

public void DoAction(int actionSet, int actionId)

Parameters

actionSet int

The action set to use

actionId int

The id of the action within the action set

Remarks

For monsters use the ForceAction(int) method instead.

GetActionList(int)

Gets an action list by its index.

public ActionList GetActionList(int actionSet)

Parameters

actionSet int

The index of the action set

Returns

ActionList

The list of actions for the requested action set

Exceptions

ArgumentOutOfRangeException