![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Records "add dynamic exec-out pin" on a VSSequence or VSSwitch node for undo/redo. More...
#include <UndoRedoStack.h>
Inheritance diagram for Olympe::AddDynamicPinCommand:
Collaboration diagram for Olympe::AddDynamicPinCommand:Public Member Functions | |
| AddDynamicPinCommand (int32_t nodeID, const std::string &pinName) | |
| 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 |
| std::string | m_pinName |
Records "add dynamic exec-out pin" on a VSSequence or VSSwitch node for undo/redo.
Execute() adds a new pin name (e.g. "Out_2" or "Case_2") to the node's DynamicExecOutputPins vector and rebuilds the lookup cache. Undo() removes the last pin.
Definition at line 263 of file UndoRedoStack.h.
Definition at line 391 of file UndoRedoStack.cpp.
|
overridevirtual |
Applies the command to the graph.
Implements Olympe::ICommand.
Definition at line 397 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_nodeID, and m_pinName.
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 425 of file UndoRedoStack.cpp.
|
overridevirtual |
Reverses the command on the graph.
Implements Olympe::ICommand.
Definition at line 410 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_nodeID, and m_pinName.
Here is the call graph for this function:
|
private |
Definition at line 272 of file UndoRedoStack.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 273 of file UndoRedoStack.h.
Referenced by Execute(), GetDescription(), and Undo().