ComponentTypeID GetComponentTypeID_Static()
Base command class for undo/redo in graph operations.
Command to copy selected nodes to clipboard.
bool Undo() override
Undo the command (reverse operation)
std::vector< ClipboardNode > m_clipboardData
std::vector< int > m_nodeIds
virtual ~CopyNodesCommand()=default
bool Execute() override
Execute the command (forward operation)
std::string GetDescription() const override
Get a human-readable description of the command.
Command to duplicate selected nodes (copy + paste in one action)
std::string GetDescription() const override
Get a human-readable description of the command.
std::vector< int > m_originalNodeIds
bool Execute() override
Execute the command (forward operation)
std::vector< int > m_duplicatedNodeIds
virtual ~DuplicateNodeCommand()=default
bool Undo() override
Undo the command (reverse operation)
Abstract base class for all graph modification commands.
Command to paste nodes from clipboard with offset.
std::map< int, int > m_idMapping
bool Execute() override
Execute the command (forward operation)
std::string GetDescription() const override
Get a human-readable description of the command.
virtual ~PasteNodesCommand()=default
std::vector< int > m_pastedNodeIds
bool Undo() override
Undo the command (reverse operation)
< Provides AssetID and INVALID_ASSET_ID