Search Results for

    Show / Hide Table of Contents

    Class ActiveWaitConditionWorkAction

    A work action to wait for an event for a period of time.

    Inheritance
    object
    WorkAction
    ActiveWaitConditionWorkAction
    Implements
    IUpdatableWorkAction
    IWorkAction
    Inherited Members
    WorkAction.Completed
    WorkAction.Canceled
    WorkAction.IsSkippable
    WorkAction.Skipped
    WorkAction.State
    WorkAction.Scene
    WorkAction.ChildActions
    WorkAction.Run()
    WorkAction.TrySkip()
    WorkAction.Cancel()
    WorkAction.PerformCompleted()
    WorkAction.PerformCancel()
    Namespace: Evergine.Components.WorkActions
    Assembly: Evergine.Components.dll
    Syntax
    public class ActiveWaitConditionWorkAction : WorkAction, IUpdatableWorkAction, IWorkAction

    Constructors

    ActiveWaitConditionWorkAction(IWorkAction, Func<bool>, int)

    Initializes a new instance of the ActiveWaitConditionWorkAction class.

    Declaration
    public ActiveWaitConditionWorkAction(IWorkAction parent, Func<bool> breakPredicate, int eventCount = 1)
    Parameters
    Type Name Description
    IWorkAction parent

    The parent action.

    Func<bool> breakPredicate

    The condition predicate.

    int eventCount

    The event count.

    ActiveWaitConditionWorkAction(Func<bool>, Scene, int)

    Initializes a new instance of the ActiveWaitConditionWorkAction class.

    Declaration
    public ActiveWaitConditionWorkAction(Func<bool> breakPredicate, Scene scene = null, int eventCount = 1)
    Parameters
    Type Name Description
    Func<bool> breakPredicate

    The condition predicate.

    Scene scene

    The scene.

    int eventCount

    The event count.

    Properties

    EventCount

    Gets the count of events.

    Declaration
    public int EventCount { get; }
    Property Value
    Type Description
    int

    Predicate

    Gets the predicate.

    Declaration
    public Func<bool> Predicate { get; }
    Property Value
    Type Description
    Func<bool>

    Methods

    PerformRun()

    Performs run actions.

    Declaration
    protected override void PerformRun()
    Overrides
    WorkAction.PerformRun()

    PerformSkip()

    Skip the action.

    Declaration
    protected override bool PerformSkip()
    Returns
    Type Description
    bool

    A value indicating if the work action is successfully skipped.

    Overrides
    WorkAction.PerformSkip()

    Update(TimeSpan)

    Updates the work action.

    Declaration
    public void Update(TimeSpan gameTime)
    Parameters
    Type Name Description
    TimeSpan gameTime

    The current game time.

    Implements

    IUpdatableWorkAction
    IWorkAction

    Extension Methods

    WorkActionFactory.AndWaitCondition(IWorkAction, Func<bool>, int)
    WorkActionFactory.AsSkippableWorkAction(IWorkAction)
    WorkActionFactory.ContinueWith(IWorkAction, IWorkAction)
    WorkActionFactory.ContinueWith(IWorkAction, params IWorkAction[])
    WorkActionFactory.ContinueWith(IWorkAction, IEnumerable<IWorkAction>)
    WorkActionFactory.ContinueWith(IWorkAction, Func<IWorkAction>)
    WorkActionFactory.ContinueWith(IWorkAction, params Func<IWorkAction>[])
    WorkActionFactory.ContinueWithAction(IWorkAction, Action)
    WorkActionFactory.CreateParallelWorkActions(IWorkAction, IEnumerable<IWorkAction>)
    WorkActionFactory.Delay(IWorkAction, TimeSpan)
    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX