class MAGES::Analytics::Editor::ErrorsStateMachine

Overview

The state machine for the errors. More…

class ErrorsStateMachine: public MAGES::Analytics::Editor::BaseAnalyticsStateMachine
{
public:
    // methods

    ErrorsStateMachine(string selectedSceneGraphData);
    virtual override void State0(ScrollView parent);

    virtual override void State1(
        ScrollView parent,
        Action onValueChanged,
        bool reset
    );

    virtual override void State2(
        ScrollView parent,
        Action onValueChanged,
        bool reset
    );
};

Inherited Members

public:
    // properties

    string SelectedSceneGraphData;

    // methods

    BaseAnalyticsStateMachine(string selectedSceneGraphData);
    virtual void State0(ScrollView parent);
    virtual void State1(ScrollView parent, Action onValueChanged, bool reset);
    virtual void State2(ScrollView parent, Action onValueChanged, bool reset);

    VisualElement CreateExistingItemButton(
        AnalyticsScriptableObject so,
        string assetName,
        AnalyticsTypes.Type analyticsType,
        ScrollView parent,
        string buttonText,
        Type entryType,
        ScrollView existingItemsView,
        List> items,
        bool allTypesMode
    );

Detailed Documentation

The state machine for the errors.

Methods

ErrorsStateMachine(string selectedSceneGraphData)

Initializes a new instance of the ErrorsStateMachine class.

Parameters:

selectedSceneGraphData

The name of the selected scene graph data.

virtual override void State0(ScrollView parent)

The first state of the state machine.

Parameters:

parent

The parent UI element.

virtual override void State1(
    ScrollView parent,
    Action onValueChanged,
    bool reset
)

The second state of the state machine.

Parameters:

parent

The parent UI element.

onValueChanged

Lambda to be called when the value changes.

reset

Whether or not to reset the parent.

virtual override void State2(
    ScrollView parent,
    Action onValueChanged,
    bool reset
)

The third state of the state machine.

Parameters:

parent

The parent UI element.

onValueChanged

Lambda to be called when the value changes.

reset

Whether or not to reset the parent.