handles link changes on instances More...
#include <PrefabUndo.h>
Inherits AzToolsFramework::Prefab::PrefabUndoBase.
Public Types | |
enum class | LinkStatus { ADD , REMOVE , LINKSTATUS } |
![]() | |
typedef AZStd::vector< URSequencePoint * > | ChildVec |
typedef AZStd::function< void(URSequencePoint *) > | ApplyOperationCB |
Public Member Functions | |
PrefabUndoInstanceLink (const AZStd::string &undoOperationName) | |
void | Capture (TemplateId targetId, TemplateId sourceId, const InstanceAlias &instanceAlias, PrefabDom linkPatches=PrefabDom(), const LinkId linkId=InvalidLinkId) |
void | Undo () override |
void | Redo () override |
void | Redo (InstanceOptionalConstReference instanceToExclude) override |
Overload to allow to apply the change, but prevent instanceToExclude from being refreshed. | |
LinkId | GetLinkId () |
![]() | |
AZ_RTTI (PrefabUndoBase, "{C86BFA2B-E042-40FC-B5C6-1838030B34BF}", UndoSystem::URSequencePoint) | |
AZ_CLASS_ALLOCATOR (PrefabUndoBase, AZ::SystemAllocator) | |
PrefabUndoBase (const AZStd::string &undoOperationName) | |
bool | Changed () const override |
![]() | |
URSequencePoint (const AZStd::string &friendlyName, URCommandID id=0) | |
URSequencePoint (URCommandID id) | |
virtual | ~URSequencePoint () |
void | RunUndo () |
void | RunRedo () |
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 |
Additional Inherited Members | |
![]() | |
friend | UndoStack |
![]() | |
void | AddChild (URSequencePoint *) |
void | RemoveChild (URSequencePoint *) |
![]() | |
PrefabDom | m_redoPatch |
PrefabDom | m_undoPatch |
TemplateId | m_templateId |
InstanceToTemplateInterface * | m_instanceToTemplateInterface = nullptr |
InstanceDomGeneratorInterface * | m_instanceDomGeneratorInterface = nullptr |
PrefabSystemComponentInterface * | m_prefabSystemComponentInterface = nullptr |
bool | m_changed |
![]() | |
AZStd::string | m_friendlyName |
URCommandID | m_id |
ChildVec | m_children |
URSequencePoint * | m_parent |
bool | m_isPosted |
handles link changes on instances
|
overridevirtual |
Reimplemented from AzToolsFramework::Prefab::PrefabUndoBase.
|
overridevirtual |
Overload to allow to apply the change, but prevent instanceToExclude from being refreshed.
Reimplemented from AzToolsFramework::Prefab::PrefabUndoBase.
|
overridevirtual |
Usage: override with class specific actions
Reimplemented from AzToolsFramework::Prefab::PrefabUndoBase.