class MAGES::SceneGraph::TimeLimitConditionData

Overview

Passes if the action was completed within the configured time limit. More…

class TimeLimitConditionData: public MAGES::ConditionData
{
public:
    // fields

    int minutes = 0;
    float seconds = 0f;

    // methods

    virtual override void Initialize();
    virtual override bool Check();
};

Inherited Members

public:
    // enums

    enum CheckResult;

    // fields

    bool fail = false;
    bool negate = false;
    bool critical = false;
    string description = string.Empty;

    // properties

    bool IsInitialized;

    // methods

    void InitializeInternal(BaseActionData data);
    void UndoInternal();
    virtual void Initialize();
    virtual void Undo();
    CheckResult CheckInternal();
    virtual bool Check();

Detailed Documentation

Passes if the action was completed within the configured time limit.

The limit is only sampled when the action’s trigger fires, so an action that is never completed never fails on its own. Negating the condition turns it into “must take at least”.

Methods

virtual override bool Check()

Performs the check and returns whether it passed or failed.

Returns:

A value indicating whether the condition is satisfied or not.