Class Action
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
instancenint
Properties
ActiveTime
The amount of time the action has been active.
public ref float ActiveTime { get; }
Property Value
DeltaSec
The actions delta time.
public ref float DeltaSec { get; }
Property Value
Flags
The flags of the action.
public ref ulong Flags { get; }
Property Value
Name
The name of the action.
public string Name { get; }
Property Value
Parent
The entity that the action is attached to.
public Entity? Parent { get; }
Property Value
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.