![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Records a batch edit of all parameter bindings on a node. More...
#include <UndoRedoStack.h>
Inheritance diagram for Olympe::EditNodePropertiesCommand:
Collaboration diagram for Olympe::EditNodePropertiesCommand:Public Types | |
| using | ParameterMap = std::unordered_map< std::string, ParameterBinding > |
Public Member Functions | |
| EditNodePropertiesCommand (int32_t nodeID, const ParameterMap &oldParams, const ParameterMap &newParams) | |
| void | Execute (TaskGraphTemplate &graph) override |
| Applies the command to the graph. | |
| void | Undo (TaskGraphTemplate &graph) override |
| Reverses the command on the graph. | |
| std::string | GetDescription () const override |
| Returns a short human-readable description (e.g. | |
Public Member Functions inherited from Olympe::ICommand | |
| virtual | ~ICommand ()=default |
Private Attributes | |
| int32_t | m_nodeID |
| ParameterMap | m_oldParams |
| ParameterMap | m_newParams |
Records a batch edit of all parameter bindings on a node.
Suitable for snapshotting the full parameter map before a complex edit and restoring it atomically on Undo().
Definition at line 357 of file UndoRedoStack.h.
| using Olympe::EditNodePropertiesCommand::ParameterMap = std::unordered_map<std::string, ParameterBinding> |
Definition at line 359 of file UndoRedoStack.h.
| Olympe::EditNodePropertiesCommand::EditNodePropertiesCommand | ( | int32_t | nodeID, |
| const ParameterMap & | oldParams, | ||
| const ParameterMap & | newParams | ||
| ) |
Definition at line 646 of file UndoRedoStack.cpp.
|
overridevirtual |
Applies the command to the graph.
Implements Olympe::ICommand.
Definition at line 654 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_newParams, and m_nodeID.
Here is the call graph for this function:
|
overridevirtual |
Returns a short human-readable description (e.g.
"Add Node #3").
Implements Olympe::ICommand.
Definition at line 678 of file UndoRedoStack.cpp.
References m_nodeID.
|
overridevirtual |
Reverses the command on the graph.
Implements Olympe::ICommand.
Definition at line 666 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_nodeID, and m_oldParams.
Here is the call graph for this function:
|
private |
Definition at line 372 of file UndoRedoStack.h.
Referenced by Execute().
|
private |
Definition at line 370 of file UndoRedoStack.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 371 of file UndoRedoStack.h.
Referenced by Undo().