Class WorkActionNode
A work action to continue with another action.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class WorkActionNode : WorkAction, IWorkAction
Constructors
WorkActionNode(IWorkAction, Scene)
Initializes a new instance of the WorkActionNode class.
Declaration
public WorkActionNode(IWorkAction wrappedAction, Scene scene = null)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | wrappedAction | The wrapped work action. |
Scene | scene | The scene. |
WorkActionNode(IWorkAction, IWorkAction)
Initializes a new instance of the WorkActionNode class.
Declaration
public WorkActionNode(IWorkAction parent, IWorkAction wrappedAction)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | parent | The parent action. |
IWorkAction | wrappedAction | The wrapped work action. |
WorkActionNode(IWorkAction, Func<IWorkAction>)
Initializes a new instance of the WorkActionNode class.
Declaration
public WorkActionNode(IWorkAction parent, Func<IWorkAction> actionFunction)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | parent | The parent action. |
Func<IWorkAction> | actionFunction | The wrapped work action. |
WorkActionNode(Func<IWorkAction>, Scene)
Initializes a new instance of the WorkActionNode class.
Declaration
public WorkActionNode(Func<IWorkAction> actionFunction, Scene scene = null)
Parameters
Type | Name | Description |
---|---|---|
Func<IWorkAction> | actionFunction | The wrapped work action. |
Scene | scene | The scene. |
Fields
wrappedAction
The wrapped action.
Declaration
protected IWorkAction wrappedAction
Field Value
Type | Description |
---|---|
IWorkAction |
Properties
ChildActions
Gets the child tasks.
Declaration
public override IEnumerable<IWorkAction> ChildActions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IWorkAction> | The child tasks. |
Overrides
Methods
PerformCancel()
Performs the work action cancellation.
Declaration
protected override void PerformCancel()
Overrides
PerformRun()
Performs run actions.
Declaration
protected override void PerformRun()
Overrides
PerformSkip()
Skips the action.
Declaration
protected override bool PerformSkip()
Returns
Type | Description |
---|---|
bool | A value indicating if the work action is successfully skipped. |
Overrides
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |