Class WaitWorkAction
A work action to wait for a period of 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()
Performs cancelation.
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. |