Undo class for handling addition of an entity to an instance as override of focused instance. More...
#include <PrefabUndoAddEntityAsOverride.h>
Inherits AzToolsFramework::Prefab::PrefabUndoUpdateLink.
Public Member Functions | |
AZ_RTTI (PrefabUndoAddEntityAsOverride, "{45CD5DB2-7A78-45A0-AC85-D2F48F90CA1E}", PrefabUndoUpdateLink) | |
AZ_CLASS_ALLOCATOR (PrefabUndoAddEntityAsOverride, AZ::SystemAllocator) | |
PrefabUndoAddEntityAsOverride (const AZStd::string &undoOperationName) | |
void | Capture (const AZ::Entity &parentEntity, const AZ::Entity &newEntity, Instance &owningInstance, Instance &focusedInstance) |
Public Member Functions inherited from AzToolsFramework::Prefab::PrefabUndoUpdateLink | |
AZ_RTTI (PrefabUndoUpdateLink, "{9D2488FA-E0C4-408A-9494-4E0624E95820}", PrefabUndoBase) | |
AZ_CLASS_ALLOCATOR (PrefabUndoUpdateLink, AZ::SystemAllocator) | |
PrefabUndoUpdateLink (const AZStd::string &undoOperationName) | |
void | Undo () override |
void | Redo () override |
void | Redo (InstanceOptionalConstReference instanceToExclude) override |
Overload to allow to apply the change, but prevent instanceToExclude from being refreshed. | |
void | Capture (const PrefabDom &linkedInstancePatch, LinkId linkId) |
Public Member Functions inherited from AzToolsFramework::Prefab::PrefabUndoBase | |
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 |
void | Undo () override |
void | Redo () override |
virtual void | Redo (InstanceOptionalConstReference instanceToExclude) |
Overload to allow to apply the change, but prevent instanceToExclude from being refreshed. | |
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 |
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::Prefab::PrefabUndoUpdateLink | |
void | UpdateLink (const PrefabDom &linkDom, InstanceOptionalConstReference instanceToExclude=AZStd::nullopt) |
Protected Member Functions inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
void | AddChild (URSequencePoint *) |
void | RemoveChild (URSequencePoint *) |
Protected Attributes inherited from AzToolsFramework::Prefab::PrefabUndoUpdateLink | |
LinkId | m_linkId = InvalidLinkId |
Protected Attributes inherited from AzToolsFramework::Prefab::PrefabUndoBase | |
PrefabDom | m_redoPatch |
PrefabDom | m_undoPatch |
TemplateId | m_templateId |
InstanceToTemplateInterface * | m_instanceToTemplateInterface = nullptr |
InstanceDomGeneratorInterface * | m_instanceDomGeneratorInterface = nullptr |
PrefabSystemComponentInterface * | m_prefabSystemComponentInterface = nullptr |
bool | m_changed |
Protected Attributes inherited from AzToolsFramework::UndoSystem::URSequencePoint | |
AZStd::string | m_friendlyName |
URCommandID | m_id |
ChildVec | m_children |
URSequencePoint * | m_parent |
bool | m_isPosted |
Undo class for handling addition of an entity to an instance as override of focused instance.