#include <SliceDataFlagsCommand.h>
Inherits AzToolsFramework::UndoSystem::URSequencePoint.
Public Member Functions | |
AZ_CLASS_ALLOCATOR (SliceDataFlagsCommand, AZ::SystemAllocator) | |
AZ_RTTI (SliceDataFlagsCommand, "{002F9CCE-3677-46FE-A2E8-FE406A002694}", UndoSystem::URSequencePoint) | |
SliceDataFlagsCommand (const AZ::EntityId &entityId, const AZ::DataPatch::AddressType &targetDataAddress, AZ::DataPatch::Flag dataFlag, bool flagOn, const AZStd::string &friendlyName, UndoSystem::URCommandID commandId=0) | |
void | Undo () override |
void | Redo () override |
bool | Changed () const override |
Public Member Functions inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
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 |
Protected Attributes | |
AZ::EntityId | m_entityId |
AZ::DataPatch::AddressType | m_dataAddress |
AZ::DataPatch::Flags | m_previousDataFlags = 0 |
AZ::DataPatch::Flags | m_nextDataFlags = 0 |
Protected Attributes inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
AZStd::string | m_friendlyName |
URCommandID | m_id |
ChildVec | m_children |
URSequencePoint * | m_parent |
bool | m_isPosted |
Additional Inherited Members | |
Public Types inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
typedef AZStd::vector< URSequencePoint * > | ChildVec |
typedef AZStd::function< void(URSequencePoint *) > | ApplyOperationCB |
Public Attributes inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
friend | UndoStack |
Protected Member Functions inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
void | AddChild (URSequencePoint *) |
void | RemoveChild (URSequencePoint *) |
Undoable command for setting a single data flag. Data flags affect how inheritance works within a slice (see AZ::DataPatch::Flag).
AzToolsFramework::SliceDataFlagsCommand::SliceDataFlagsCommand | ( | const AZ::EntityId & | entityId, |
const AZ::DataPatch::AddressType & | targetDataAddress, | ||
AZ::DataPatch::Flag | dataFlag, | ||
bool | flagOn, | ||
const AZStd::string & | friendlyName, | ||
UndoSystem::URCommandID | commandId = 0 |
||
) |
entityId | The entity to set the data flag in. |
targetDataAddress | The address (relative to the entity) to set the data flag on. |
dataFlag | The flag to set. |
flagOn | Whether to turn the flag on or off. |
|
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.
|
overridevirtual |
Reimplemented from AzToolsFramework::UndoSystem::URSequencePoint.
|
overridevirtual |
Usage: override with class specific actions
Reimplemented from AzToolsFramework::UndoSystem::URSequencePoint.