1 using SiliconStudio.ActionStack;
2 using SiliconStudio.Core.Reflection;
4 namespace SiliconStudio.Quantum.
Commands
10 public abstract string Name {
get; }
20 var newValue = ModifyValue(currentValue, descriptor, parameter);
21 undoToken = !Equals(newValue, currentValue) ?
new UndoToken(
true, currentValue) :
new UndoToken(
false);
27 return undoToken.TokenValue;
30 protected abstract object ModifyValue(
object currentValue,
ITypeDescriptor descriptor,
object parameter);
object Undo(object currentValue, ITypeDescriptor descriptor, UndoToken undoToken)
Undoes an invoke of the node command.
CombineMode
An enum that describes what to do with a node or a command when combining view models.
Base interface for node commands.
Provides access members of a type.
object Invoke(object currentValue, ITypeDescriptor descriptor, object parameter, out UndoToken undoToken)
Invokes the node command.
Base class for IMemberDescriptor for a MemberInfo
Represents a token that stores an unique identifier and an object. This token should be generated by ...