![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
DuplicateNodeCommand - Command to duplicate a node. More...
#include <CommandSystem.h>
Inheritance diagram for Olympe::DuplicateNodeCommand:
Collaboration diagram for Olympe::DuplicateNodeCommand:Public Member Functions | |
| DuplicateNodeCommand (const std::string &graphId, int sourceNodeId) | |
| void | Execute () override |
| void | Undo () override |
| std::string | GetDescription () const override |
Public Member Functions inherited from Olympe::EditorCommand | |
| virtual | ~EditorCommand ()=default |
Private Attributes | |
| std::string | m_GraphId |
| int | m_SourceNodeId |
| int | m_CreatedNodeId |
| json | m_NodeData |
DuplicateNodeCommand - Command to duplicate a node.
Definition at line 212 of file CommandSystem.h.
| Olympe::DuplicateNodeCommand::DuplicateNodeCommand | ( | const std::string & | graphId, |
| int | sourceNodeId | ||
| ) |
Definition at line 431 of file CommandSystem.cpp.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 438 of file CommandSystem.cpp.
References Olympe::GraphNode::actionType, Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_CreatedNodeId, m_GraphId, m_NodeData, m_SourceNodeId, and Olympe::NodeTypeToString().
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 495 of file CommandSystem.cpp.
References m_SourceNodeId.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 480 of file CommandSystem.cpp.
References Olympe::NodeGraph::DeleteNode(), Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_CreatedNodeId, and m_GraphId.
Here is the call graph for this function:
|
private |
Definition at line 224 of file CommandSystem.h.
|
private |
Definition at line 222 of file CommandSystem.h.
|
private |
Definition at line 225 of file CommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 223 of file CommandSystem.h.
Referenced by Execute(), and GetDescription().