Class ActionWorkAction
A work action that executes an Action.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class ActionWorkAction : WorkAction, IWorkAction
Constructors
ActionWorkAction(IWorkAction, Action)
Initializes a new instance of the ActionWorkAction class.
Declaration
public ActionWorkAction(IWorkAction parent, Action action)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | parent | The parent task. |
| Action | action | The action to execute. |
ActionWorkAction(Action, Scene)
Initializes a new instance of the ActionWorkAction class.
Declaration
public ActionWorkAction(Action action, Scene scene = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | action | The action to execute. |
| Scene | scene | The associated scene. |
Methods
PerformRun()
Performs the run action.
Declaration
protected override void PerformRun()