Table of Contents

Class Action

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

Represents an instance of the cActionBase class.

public class Action : MtObject
Inheritance
Action
Derived
Inherited Members

Constructors

Action()

public Action()

Action(nint)

public Action(nint instance)

Parameters

instance nint

Properties

ActiveTime

The amount of time the action has been active.

public ref float ActiveTime { get; }

Property Value

float

DeltaSec

The actions delta time.

public ref float DeltaSec { get; }

Property Value

float

Flags

The flags of the action.

public ref ulong Flags { get; }

Property Value

ulong

Name

The name of the action.

public string Name { get; }

Property Value

string

Parent

The entity that the action is attached to.

public Entity? Parent { get; }

Property Value

Entity

Methods

OnEnd()

Called when the action ends. Dispatches through the objects vtable.

public virtual void OnEnd()

Remarks

CustomAction overrides this to run managed code instead.

OnExecute()

Called each time the action is executed. Dispatches through the objects vtable.

public virtual void OnExecute()

Remarks

CustomAction overrides this to run managed code instead.

OnInitialize()

Called after the action object is created. Dispatches through the objects vtable.

public virtual void OnInitialize()

Remarks

CustomAction overrides this to run managed code instead.

OnUpdate()

Called once per frame while the action is active. Dispatches through the objects vtable.

public virtual bool OnUpdate()

Returns

bool

False to end the action

Remarks

CustomAction overrides this to run managed code instead.