![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Records "remove dynamic exec-out pin" on a VSSequence or VSSwitch node for undo/redo. More...
#include <UndoRedoStack.h>
Inheritance diagram for Olympe::RemoveExecPinCommand:
Collaboration diagram for Olympe::RemoveExecPinCommand:Public Member Functions | |
| RemoveExecPinCommand (int32_t nodeID, const std::string &pinName, int pinIndex, int32_t linkedTargetNodeID, const std::string &linkedTargetPinName) | |
| 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 |
| int | m_pinIndex |
| int32_t | m_linkedTargetNodeID |
| -1 if no outgoing link was present | |
| std::string | m_linkedTargetPinName |
Records "remove dynamic exec-out pin" on a VSSequence or VSSwitch node for undo/redo.
Execute() removes the pin from DynamicExecOutputPins at the stored index, and removes any ExecConnection originating from that pin. Undo() re-inserts the pin at its original index and restores any saved connection.
Stored data:
Definition at line 297 of file UndoRedoStack.h.
| Olympe::RemoveExecPinCommand::RemoveExecPinCommand | ( | int32_t | nodeID, |
| const std::string & | pinName, | ||
| int | pinIndex, | ||
| int32_t | linkedTargetNodeID, | ||
| const std::string & | linkedTargetPinName | ||
| ) |
Definition at line 434 of file UndoRedoStack.cpp.
|
overridevirtual |
Applies the command to the graph.
Implements Olympe::ICommand.
Definition at line 447 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_nodeID, and m_pinIndex.
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 504 of file UndoRedoStack.cpp.
|
overridevirtual |
Reverses the command on the graph.
Implements Olympe::ICommand.
Definition at line 472 of file UndoRedoStack.cpp.
References GetComponentTypeID_Static(), m_linkedTargetNodeID, m_linkedTargetPinName, m_nodeID, m_pinIndex, m_pinName, and Olympe::ExecPinConnection::SourceNodeID.
Here is the call graph for this function:
|
private |
-1 if no outgoing link was present
Definition at line 313 of file UndoRedoStack.h.
Referenced by Undo().
|
private |
Definition at line 314 of file UndoRedoStack.h.
Referenced by Undo().
|
private |
Definition at line 310 of file UndoRedoStack.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 312 of file UndoRedoStack.h.
|
private |
Definition at line 311 of file UndoRedoStack.h.
Referenced by GetDescription(), and Undo().