Class WaitCountWorkAction
A work action to continue with other 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 child action list. |
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 generator action 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 child action list. |
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 child generator action list. |
Properties
CanceledCount
Gets the cancel count.
Declaration
protected int CanceledCount { get; }
Property Value
Type | Description |
---|---|
int | The canceled. |
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. |
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()
Perform cancel action.
Declaration
protected override void PerformCancel()
Overrides
PerformRun()
Perform Run actions.
Declaration
protected override void PerformRun()