class MAGES::Analytics::Editor::WrongAnswerUI

Overview

Class that represents the analytics type that triggers when a question action is replied wrongly. More…

class WrongAnswerUI: public MAGES::Analytics::Editor::BaseAnalyticsUI
{
public:
    // methods

    WrongAnswerUI(List actions);

    virtual override void Save(
        AnalyticsScriptableObject so,
        string name,
        string typeOfError,
        string info,
        int penalty
    );

    virtual override void Delete(AnalyticsScriptableObject so, string key);
};

Inherited Members

public:
    // methods

    void Initialize(
        AnalyticsScriptableObject so,
        string entryName,
        string assetName,
        string savePath,
        VisualElement parent,
        VisualElement foldout,
        AnalyticsTypes.Type type,
        Type internalType,
        Type internalTypeUI,
        bool editMode,
        ScrollView existingItemsView,
        List> items,
        BaseAnalyticsStateMachine stateMachine
    );

    virtual void Save(
        AnalyticsScriptableObject so,
        string name,
        string typeOfError,
        string info,
        int penalty
    );

    virtual void Delete(AnalyticsScriptableObject so, string key);

    virtual void Draw(
        AnalyticsScriptableObject so,
        VisualElement foldout,
        bool isObjective,
        bool editMode = false,
        string entryName = ""
    );

Detailed Documentation

Class that represents the analytics type that triggers when a question action is replied wrongly.

Methods

WrongAnswerUI(List actions)

Initializes a new instance of the WrongAnswerUI class.

Parameters:

actions

The available actions.

virtual override void Save(
    AnalyticsScriptableObject so,
    string name,
    string typeOfError,
    string info,
    int penalty
)

Saves the changes made to this analytics entry.

Parameters:

so

The scriptable object that the data are stored to.

name

The name of the error to save.

typeOfError

The type of the error to save.

info

The info of the error to save.

penalty

The penalty of the error to save.

virtual override void Delete(AnalyticsScriptableObject so, string key)

Deletes the specified analytics object from the scriptable object and UI.

Parameters:

so

The scriptable object that the data are stored to.

key

The name of the error to delete.