Table of Contents

Interface INodeEditorService

Namespace
Artemis.UI.Shared.Services.NodeEditor
Assembly
Artemis.UI.Shared.dll

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

public interface INodeEditorService : IArtemisSharedUIService

Methods

CreateCommandScope(INodeScript, string)

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

NodeEditorCommandScope CreateCommandScope(INodeScript nodeScript, string name)

Parameters

nodeScript INodeScript

The node script to create the scope for.

name string

The name of the command scope.

Returns

NodeEditorCommandScope

The command scope that will group any commands until disposed.

ExecuteCommand(INodeScript, INodeEditorCommand)

Executes the provided command and adds it to the history.

void ExecuteCommand(INodeScript nodeScript, INodeEditorCommand command)

Parameters

nodeScript INodeScript

The node script to execute the command upon.

command INodeEditorCommand

The command to execute.

GetHistory(INodeScript)

Gets the editor history for the provided node script.

NodeEditorHistory GetHistory(INodeScript nodeScript)

Parameters

nodeScript INodeScript

The node script to get the editor history for.

Returns

NodeEditorHistory

The node editor history of the given node script.