Class WaitCountWorkAction
A work action to continue with another action.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class WaitCountWorkAction : WorkAction, IWorkAction
Constructors
WaitCountWorkAction(Scene, int, params IWorkAction[])
Initializes a new instance of the WaitCountWorkAction class.
Declaration
public WaitCountWorkAction(Scene scene, int countLimit, params IWorkAction[] childActions)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | scene | The scene. |
| int | countLimit | The count limit. |
| IWorkAction[] | childActions | The list of child actions. |
WaitCountWorkAction(Scene, int, params Func<IWorkAction>[])
Initializes a new instance of the WaitCountWorkAction class.
Declaration
public WaitCountWorkAction(Scene scene, int countLimit, params Func<IWorkAction>[] childActionGenerators)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | scene | The scene. |
| int | countLimit | The count limit. |
| Func<IWorkAction>[] | childActionGenerators | The child action generator list. |
WaitCountWorkAction(IWorkAction, int, params IWorkAction[])
Initializes a new instance of the WaitCountWorkAction class.
Declaration
public WaitCountWorkAction(IWorkAction parent, int countLimit, params IWorkAction[] childActions)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | parent | The parent action. |
| int | countLimit | The count limit. |
| IWorkAction[] | childActions | The list of child actions. |
WaitCountWorkAction(IWorkAction, int, params Func<IWorkAction>[])
Initializes a new instance of the WaitCountWorkAction class.
Declaration
public WaitCountWorkAction(IWorkAction parent, int countLimit, params Func<IWorkAction>[] childActionGenerators)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | parent | The parent action. |
| int | countLimit | The count limit. |
| Func<IWorkAction>[] | childActionGenerators | The list of child action generators. |
Properties
CanceledCount
Gets the cancel count.
Declaration
protected int CanceledCount { get; }
Property Value
| Type | Description |
|---|---|
| int | The canceled count. |
ChildActions
Gets the child actions.
Declaration
public override IEnumerable<IWorkAction> ChildActions { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IWorkAction> |
Overrides
CompletedCount
Gets the number of completed actions.
Declaration
protected int CompletedCount { get; }
Property Value
| Type | Description |
|---|---|
| int | The completed actions. |
CountLimit
Gets the count limit.
Declaration
protected int CountLimit { get; }
Property Value
| Type | Description |
|---|---|
| int | The count limit. |
Methods
ActionCanceled(IWorkAction)
Method invoked when an action is canceled.
Declaration
protected void ActionCanceled(IWorkAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | action | The work action. |
ActionCompleted(IWorkAction)
Method invoked when an action is canceled.
Declaration
protected void ActionCompleted(IWorkAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorkAction | action | The work action. |
CheckEnd()
Checks the end.
Declaration
protected void CheckEnd()
PerformCancel()
Performs cancel action.
Declaration
protected override void PerformCancel()
Overrides
PerformRun()
Performs run actions.
Declaration
protected override void PerformRun()