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
NextAction
The action that will be performed next.
public ref ActionInfo NextAction { get; }
Property Value
Owner
The owner of this action controller.
public Entity? Owner { get; }
Property Value
PreviousAction
The action that was performed before the current one.
public ref ActionInfo PreviousAction { get; }
Property Value
Methods
DoAction(int, int)
Makes the entity perform an action.
public void DoAction(int actionSet, int actionId)
Parameters
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
intThe index of the action set
Returns
- ActionList
The list of actions for the requested action set