![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Records an "add data connection" operation for undo/redo. More...
#include <UndoRedoStack.h>
Inheritance diagram for Olympe::AddDataConnectionCommand:
Collaboration diagram for Olympe::AddDataConnectionCommand:Public Member Functions | |
| AddDataConnectionCommand (const DataPinConnection &conn) | |
| 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 | |
| DataPinConnection | m_conn |
Records an "add data connection" operation for undo/redo.
Definition at line 142 of file UndoRedoStack.h.
|
explicit |
Definition at line 216 of file UndoRedoStack.cpp.
|
overridevirtual |
Applies the command to the graph.
Implements Olympe::ICommand.
Definition at line 221 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), and m_conn.
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 239 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_conn, Olympe::DataPinConnection::SourceNodeID, Olympe::DataPinConnection::SourcePinName, Olympe::DataPinConnection::TargetNodeID, and Olympe::DataPinConnection::TargetPinName.
Here is the call graph for this function:
|
overridevirtual |
Reverses the command on the graph.
Implements Olympe::ICommand.
Definition at line 226 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:
|
private |
Definition at line 151 of file UndoRedoStack.h.
Referenced by Execute(), and GetDescription().