Artemis Artemis
Artemis Artemis

Search Results for

    Class NodeEditorService

    Represents a service that can be used to execute editor commands on node scripts.

    Inheritance
    object
    NodeEditorService
    Implements
    INodeEditorService
    IArtemisSharedUIService
    Namespace: Artemis.UI.Shared.Services.NodeEditor
    Assembly: Artemis.UI.Shared.dll
    Syntax
    public class NodeEditorService : INodeEditorService, IArtemisSharedUIService

    Constructors

    NodeEditorService(IWindowService)

    Creates a new instance of the NodeEditorService class.

    Declaration
    public NodeEditorService(IWindowService windowService)
    Parameters
    Type Name Description
    IWindowService windowService

    Methods

    CreateCommandScope(INodeScript, string)

    Creates a new command scope which can be used to group undo/redo actions of multiple commands.

    Declaration
    public NodeEditorCommandScope CreateCommandScope(INodeScript nodeScript, string name)
    Parameters
    Type Name Description
    INodeScript nodeScript

    The node script to create the scope for.

    string name

    The name of the command scope.

    Returns
    Type Description
    NodeEditorCommandScope

    The command scope that will group any commands until disposed.

    ExecuteCommand(INodeScript, INodeEditorCommand)

    Executes the provided command and adds it to the history.

    Declaration
    public void ExecuteCommand(INodeScript nodeScript, INodeEditorCommand command)
    Parameters
    Type Name Description
    INodeScript nodeScript

    The node script to execute the command upon.

    INodeEditorCommand command

    The command to execute.

    GetHistory(INodeScript)

    Gets the editor history for the provided node script.

    Declaration
    public NodeEditorHistory GetHistory(INodeScript nodeScript)
    Parameters
    Type Name Description
    INodeScript nodeScript

    The node script to get the editor history for.

    Returns
    Type Description
    NodeEditorHistory

    The node editor history of the given node script.

    Implements

    INodeEditorService
    IArtemisSharedUIService
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.