![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
CreateNodeCommand - Command to create a new node in graph. More...
#include <CommandSystem.h>
Inheritance diagram for Olympe::CreateNodeCommand:
Collaboration diagram for Olympe::CreateNodeCommand:Public Member Functions | |
| CreateNodeCommand (const std::string &graphId, const std::string &nodeType, float posX, float posY, const std::string &nodeName="") | |
| 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 |
| std::string | m_NodeType |
| std::string | m_NodeName |
| float | m_PosX |
| float | m_PosY |
| int | m_CreatedNodeId |
CreateNodeCommand - Command to create a new node in graph.
Definition at line 93 of file CommandSystem.h.
| Olympe::CreateNodeCommand::CreateNodeCommand | ( | const std::string & | graphId, |
| const std::string & | nodeType, | ||
| float | posX, | ||
| float | posY, | ||
| const std::string & | nodeName = "" |
||
| ) |
Definition at line 147 of file CommandSystem.cpp.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 160 of file CommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_CreatedNodeId, m_GraphId, m_NodeName, m_NodeType, m_PosX, m_PosY, and Olympe::StringToNodeType().
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 192 of file CommandSystem.cpp.
References m_NodeType.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 175 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 109 of file CommandSystem.h.
|
private |
Definition at line 104 of file CommandSystem.h.
|
private |
Definition at line 106 of file CommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 105 of file CommandSystem.h.
Referenced by Execute(), and GetDescription().
|
private |
Definition at line 107 of file CommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 108 of file CommandSystem.h.
Referenced by Execute().