Table of Contents

Class NodeEditorHistory

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

Represents the command history of a node script.

public class NodeEditorHistory
Inheritance
object
NodeEditorHistory

Constructors

NodeEditorHistory(INodeScript)

Creates a new instance of the NodeEditorHistory class.

public NodeEditorHistory(INodeScript nodeScript)

Parameters

nodeScript INodeScript

The node script the history relates to.

Properties

CanRedo

Gets an observable sequence containing a boolean value indicating whether history can be redone.

public IObservable<bool> CanRedo { get; }

Property Value

IObservable<bool>

CanUndo

Gets an observable sequence containing a boolean value indicating whether history can be undone.

public IObservable<bool> CanUndo { get; }

Property Value

IObservable<bool>

Execute

Gets a reactive command that can be executed to execute an instance of a INodeEditorCommand and puts it in history.

public ReactiveCommand<INodeEditorCommand, Unit> Execute { get; }

Property Value

ReactiveCommand<INodeEditorCommand, Unit>

NodeScript

Gets the node script the history relates to.

public INodeScript NodeScript { get; }

Property Value

INodeScript

Redo

Gets a reactive command that can be executed to redo history.

public ReactiveCommand<Unit, INodeEditorCommand?> Redo { get; }

Property Value

ReactiveCommand<Unit, INodeEditorCommand>

Undo

Gets a reactive command that can be executed to undo history.

public ReactiveCommand<Unit, INodeEditorCommand?> Undo { get; }

Property Value

ReactiveCommand<Unit, INodeEditorCommand>

Methods

Clear()

Clears the history.

public void Clear()

ExecuteEditorCommand(INodeEditorCommand)

Executes the provided command and puts it in history.

public void ExecuteEditorCommand(INodeEditorCommand command)

Parameters

command INodeEditorCommand

The command to execute