Interface INodeEditorService
Represents a service that can be used to execute editor commands on node scripts.
Namespace: Artemis.UI.Shared.Services.NodeEditor
Assembly: Artemis.UI.Shared.dll
Syntax
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.
Declaration
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
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
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.  |