Inherits AzToolsFramework::UndoSystem::URSequencePoint.
Inherited by AzToolsFramework::EntityCreateCommand, and AzToolsFramework::EntityDeleteCommand.
|
| AZ_RTTI (EntityStateCommand, "{4461579F-9D39-4954-B5D4-0F9388C8D15D}", UndoSystem::URSequencePoint) |
|
| AZ_CLASS_ALLOCATOR (EntityStateCommand, AZ::SystemAllocator) |
|
| EntityStateCommand (UndoSystem::URCommandID ID, const char *friendlyName=nullptr) |
|
void | Undo () override |
|
void | Redo () override |
|
void | Capture (AZ::Entity *pSourceEntity, bool captureUndo) |
|
AZ::EntityId | GetEntityID () const |
|
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 |
|
|
AZ::EntityId | m_entityID |
| The Id of the captured entity.
|
|
AzFramework::EntityContextId | m_entityContextId |
| The entity context to which the entity belongs (if any).
|
|
AZ::Entity::State | m_entityState |
| The entity state at time of capture (active, constructed, etc).
|
|
bool | m_isSelected |
| Whether the entity was selected at time of capture.
|
|
AZ::SliceComponent::EntityRestoreInfo | m_undoSliceRestoreInfo |
|
AZ::SliceComponent::EntityRestoreInfo | m_redoSliceRestoreInfo |
|
AZStd::vector< AZ::u8 > | m_undoState |
|
AZStd::vector< AZ::u8 > | m_redoState |
|
AZStd::string | m_friendlyName |
|
URCommandID | m_id |
|
ChildVec | m_children |
|
URSequencePoint * | m_parent |
|
bool | m_isPosted |
|
◆ Changed()
bool AzToolsFramework::EntityStateCommand::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::EntityStateCommand::Redo |
( |
| ) |
|
|
overridevirtual |
◆ Undo()
void AzToolsFramework::EntityStateCommand::Undo |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/Commands/EntityStateCommand.h