Class WaitWorkAction
A work action to wait for a time.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class WaitWorkAction : WorkAction, IWorkAction
Constructors
WaitWorkAction(IWorkAction, TimeSpan)
Initializes a new instance of the WaitWorkAction class.
Declaration
public WaitWorkAction(IWorkAction parent, TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | parent | The parent action. |
TimeSpan | duration | The duration of the action. |
WaitWorkAction(TimeSpan, Scene)
Initializes a new instance of the WaitWorkAction class.
Declaration
public WaitWorkAction(TimeSpan duration, Scene scene = null)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration | The duration of the action. |
Scene | scene | The scene. |
Properties
Duration
Gets or sets the duration of the work action.
Declaration
public TimeSpan Duration { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
PerformCancel()
Perform cancel.
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. |