Table of Contents

Class UpdateStorage<TStorage>

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

Represents a node editor command that can be used to update the storage value of a node.

public class UpdateStorage<TStorage> : INodeEditorCommand, IDisposable

Type Parameters

TStorage

The type of value the node stores

Inheritance
object
UpdateStorage<TStorage>
Implements

Constructors

UpdateStorage(Node<TStorage>, TStorage?, string)

Creates a new instance of the UpdateStorage<TStorage> class.

public UpdateStorage(Node<TStorage> node, TStorage? value, string valueDescription = "value")

Parameters

node Node<TStorage>

The node to update.

value TStorage

The new value of the node.

valueDescription string

The description of the value that was updated.

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()