Class WorkActionNode
A work action to continue with other 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()
Perform the work action cancellation.
Declaration
protected override void PerformCancel()
Overrides
PerformRun()
Perform Run actions.
Declaration
protected override void PerformRun()
Overrides
PerformSkip()
Skip the action.
Declaration
protected override bool PerformSkip()
Returns
Type | Description |
---|---|
bool | A value indicating it 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. |