![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
LinkNodesCommand - Command to create a link between nodes. More...
#include <CommandSystem.h>
Inheritance diagram for Olympe::LinkNodesCommand:
Collaboration diagram for Olympe::LinkNodesCommand:Public Member Functions | |
| LinkNodesCommand (const std::string &graphId, int parentId, int childId) | |
| 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_ParentId |
| int | m_ChildId |
LinkNodesCommand - Command to create a link between nodes.
Definition at line 153 of file CommandSystem.h.
| Olympe::LinkNodesCommand::LinkNodesCommand | ( | const std::string & | graphId, |
| int | parentId, | ||
| int | childId | ||
| ) |
Definition at line 324 of file CommandSystem.cpp.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 331 of file CommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), Olympe::NodeGraph::LinkNodes(), m_ChildId, m_GraphId, and m_ParentId.
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 349 of file CommandSystem.cpp.
References m_ChildId, and m_ParentId.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 340 of file CommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_ChildId, m_GraphId, m_ParentId, and Olympe::NodeGraph::UnlinkNodes().
Here is the call graph for this function:
|
private |
Definition at line 165 of file CommandSystem.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 163 of file CommandSystem.h.
|
private |
Definition at line 164 of file CommandSystem.h.
Referenced by Execute(), GetDescription(), and Undo().