![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
DuplicateNodeCommand - Command to duplicate a node. More...
#include <BPCommandSystem.h>
Inheritance diagram for Olympe::Blueprint::DuplicateNodeCommand:
Collaboration diagram for Olympe::Blueprint::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::Blueprint::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 216 of file BPCommandSystem.h.
| Olympe::Blueprint::DuplicateNodeCommand::DuplicateNodeCommand | ( | const std::string & | graphId, |
| int | sourceNodeId | ||
| ) |
Definition at line 438 of file BPCommandSystem.cpp.
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 445 of file BPCommandSystem.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::Blueprint::EditorCommand.
Definition at line 502 of file BPCommandSystem.cpp.
References m_SourceNodeId.
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 487 of file BPCommandSystem.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 228 of file BPCommandSystem.h.
|
private |
Definition at line 226 of file BPCommandSystem.h.
|
private |
Definition at line 229 of file BPCommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 227 of file BPCommandSystem.h.
Referenced by Execute(), and GetDescription().