Inherits AzToolsFramework::UndoSystem::URSequencePoint.
Inherited by AzToolsFramework::CreateSliceCommand, AzToolsFramework::DetachSubsliceInstanceCommand, AzToolsFramework::PushToSliceCommand, and AzToolsFramework::SliceDetachEntityCommand.
|
| AZ_CLASS_ALLOCATOR (BaseSliceCommand, AZ::SystemAllocator) |
|
| AZ_RTTI (BaseSliceCommand, "{87CB1C80-7D75-423B-964A-CF1964A9AB26}") |
|
| BaseSliceCommand (const AZStd::string &friendlyName) |
|
void | Undo () override=0 |
|
void | Redo () override=0 |
|
bool | Changed () const override |
|
| URSequencePoint (const AZStd::string &friendlyName, URCommandID id=0) |
|
| URSequencePoint (URCommandID id) |
|
virtual | ~URSequencePoint () |
|
void | RunUndo () |
|
void | RunRedo () |
|
virtual void | Undo () |
|
virtual void | Redo () |
|
virtual bool | Changed () const =0 |
|
URSequencePoint * | Find (URCommandID id, const AZ::Uuid &typeOfCommand) |
|
void | SetName (const AZStd::string &friendlyName) |
|
AZStd::string & | GetName () |
|
void | SetParent (URSequencePoint *parent) |
|
URSequencePoint * | GetParent () const |
|
const ChildVec & | GetChildren () const |
|
bool | HasRealChildren () const |
|
void | ApplyToTree (const ApplyOperationCB &applyCB) |
|
bool | IsPosted () const |
|
bool | operator== (const URCommandID id) const |
|
bool | operator== (const URSequencePoint *com) const |
|
|
bool | CaptureRestoreInfoForUndo (const AZ::EntityId &entityId) |
|
void | RestoreEntities (AZ::SliceComponent::EntityRestoreInfoList &entitiesToRestore, bool clearRestoreList=false, SliceEntityRestoreType restoreType=SliceEntityRestoreType::Detached) |
|
void | AddChild (URSequencePoint *) |
|
void | RemoveChild (URSequencePoint *) |
|
|
AZ::SliceComponent::EntityRestoreInfoList | m_entityRedoRestoreInfoArray |
|
AZ::SliceComponent::EntityRestoreInfoList | m_entityUndoRestoreInfoArray |
|
bool | m_changed |
|
AZStd::string | m_friendlyName |
|
URCommandID | m_id |
|
ChildVec | m_children |
|
URSequencePoint * | m_parent |
|
bool | m_isPosted |
|
◆ Changed()
bool AzToolsFramework::BaseSliceCommand::Changed |
( |
| ) |
const |
|
inlineoverridevirtual |
Usage: override with class specific change comparison between undo/redo state. This allows the undo system to remove commands that have no actual effect (Eg: a command that changes a value from 5 to 5 has no effect and can be removed)
Implements AzToolsFramework::UndoSystem::URSequencePoint.
◆ Redo()
void AzToolsFramework::BaseSliceCommand::Redo |
( |
| ) |
|
|
overridepure virtual |
◆ Undo()
void AzToolsFramework::BaseSliceCommand::Undo |
( |
| ) |
|
|
overridepure virtual |
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/Commands/BaseSliceCommand.h