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
nodeScriptINodeScriptThe node script to create the scope for.
namestringThe 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
nodeScriptINodeScriptThe node script to execute the command upon.
commandINodeEditorCommandThe command to execute.
GetHistory(INodeScript)
Gets the editor history for the provided node script.
NodeEditorHistory GetHistory(INodeScript nodeScript)
Parameters
nodeScriptINodeScriptThe node script to get the editor history for.
Returns
- NodeEditorHistory
The node editor history of the given node script.