![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
CreateNodeCommand - Command to create a new node in graph. More...
#include <BPCommandSystem.h>
Inheritance diagram for Olympe::Blueprint::CreateNodeCommand:
Collaboration diagram for Olympe::Blueprint::CreateNodeCommand:Public Member Functions | |
| CreateNodeCommand (const std::string &graphId, const std::string &nodeType, float posX, float posY, const std::string &nodeName="", int *outCreatedId=nullptr) | |
| 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 |
| std::string | m_NodeType |
| std::string | m_NodeName |
| float | m_PosX |
| float | m_PosY |
| int | m_CreatedNodeId |
| int * | m_OutCreatedId |
CreateNodeCommand - Command to create a new node in graph.
Definition at line 95 of file BPCommandSystem.h.
| Olympe::Blueprint::CreateNodeCommand::CreateNodeCommand | ( | const std::string & | graphId, |
| const std::string & | nodeType, | ||
| float | posX, | ||
| float | posY, | ||
| const std::string & | nodeName = "", |
||
| int * | outCreatedId = nullptr |
||
| ) |
Definition at line 149 of file BPCommandSystem.cpp.
References m_OutCreatedId.
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 165 of file BPCommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_CreatedNodeId, m_GraphId, m_NodeName, m_NodeType, m_OutCreatedId, m_PosX, m_PosY, and Olympe::StringToNodeType().
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 199 of file BPCommandSystem.cpp.
References m_NodeType.
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 182 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 112 of file BPCommandSystem.h.
|
private |
Definition at line 107 of file BPCommandSystem.h.
|
private |
Definition at line 109 of file BPCommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 108 of file BPCommandSystem.h.
Referenced by Execute(), and GetDescription().
|
private |
Definition at line 113 of file BPCommandSystem.h.
Referenced by CreateNodeCommand(), and Execute().
|
private |
Definition at line 110 of file BPCommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 111 of file BPCommandSystem.h.
Referenced by Execute().