class MAGES::SceneGraph::Editor::RepeatNode

Overview

The node for RepeatActionData. More…

class RepeatNode:
    public MAGES::SceneGraph::Editor::ScopeNode,
    public MAGES::SceneGraph::Editor::IActionImplementor
{
public:
    // properties

    override string Name;

    // methods

    virtual override void Save(string path);

    virtual override void Restore(
        Func<BaseActionData, GraphElement> lookup,
        Action addEdge
    );
};

Inherited Members

public:
    // properties

    string Identifier;
    string Title;
    string Name;
    bool HasUnsavedChanges;
    bool Deleted;
    bool HasAnyIncomingConnections;
    bool BoundToAsset;
    SceneGraphView View;
    Port InActionPort;
    Port OutActionPort;
    VisualElement InputContainer;
    VisualElement OutputContainer;
    BaseActionData ActionData;
    SerializedObject SerializedData;
    System.ActionIActionImplementor>> OnCanonicalInputChanged;
    Port InActionPort;
    SerializedObject SerializedData;
    Port OutActionPort;
    string Identifier;
    string Title;
    bool BoundToAsset;
    string Name;
    BaseActionData ActionData;
    bool HasUnsavedChanges;
    bool Deleted;
    SceneGraphView View;
    VisualElement InputContainer;
    VisualElement OutputContainer;
    bool HasAnyIncomingConnections;
    ActionIActionImplementor>> OnCanonicalInputChanged;

    // methods

    void Initialize(
        System.Type actionType,
        BaseActionData data,
        System.Action<IActionImplementor, string, string> onNameChanged,
        string name
    );

    void OnConnectionCreated(Port thisPort, Port otherPort, GraphElement other);
    void OnConnectionRemoved(Port thisPort, Port otherPort, GraphElement other);
    void OnRemoved();
    void Save(string path);

    void Restore(
        Func<BaseActionData, GraphElement> lookup,
        Action addEdge
    );

    void SetRuntimeControlsEnalbed(
        bool enabled,
        Action performAction,
        Action undoAction
    );

    void SetPosition(Rect newPosition);
    ScopeNode();
    override bool IsRenamable();

    void Initialize(
        Type actionType,
        BaseActionData data,
        Action<IActionImplementor, string, string> onNameChanged,
        string name
    );

    void OnConnectionCreated(Port thisPort, Port otherPort, GraphElement other);
    void OnConnectionRemoved(Port thisPort, Port otherPort, GraphElement other);
    void OnRemoved();

    virtual void Restore(
        Func<BaseActionData, GraphElement> lookup,
        Action addEdge
    );

    void SetRuntimeControlsEnalbed(
        bool enabled,
        Action performAction,
        Action undoAction
    );

    virtual void Save(string path);
    override void SetPosition(Rect newPos);

Detailed Documentation

The node for RepeatActionData.

Properties

override string Name

Gets or sets the name.

Methods

virtual override void Save(string path)

Saves the node to a serialized state.

Parameters:

path

The path to save this node to.

virtual override void Restore(
    Func<BaseActionData, GraphElement> lookup,
    Action addEdge
)

Restores the node connections from a serialized state.

Parameters:

lookup

The lookup function.

addEdge

The function to add an edge.