![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
EditNodeCommand - Command to edit node properties (name, type-specific fields) More...
#include <CommandSystem.h>
Inheritance diagram for Olympe::EditNodeCommand:
Collaboration diagram for Olympe::EditNodeCommand:Public Member Functions | |
| EditNodeCommand (const std::string &graphId, int nodeId, const std::string &oldName, const std::string &newName, const std::string &oldSubtype, const std::string &newSubtype) | |
| 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_NodeId |
| std::string | m_OldName |
| std::string | m_NewName |
| std::string | m_OldSubtype |
| std::string | m_NewSubtype |
EditNodeCommand - Command to edit node properties (name, type-specific fields)
Definition at line 231 of file CommandSystem.h.
| Olympe::EditNodeCommand::EditNodeCommand | ( | const std::string & | graphId, |
| int | nodeId, | ||
| const std::string & | oldName, | ||
| const std::string & | newName, | ||
| const std::string & | oldSubtype, | ||
| const std::string & | newSubtype | ||
| ) |
Definition at line 504 of file CommandSystem.cpp.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 516 of file CommandSystem.cpp.
References Olympe::BT_Action, Olympe::BT_Condition, Olympe::BT_Decorator, Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_GraphId, m_NewName, m_NewSubtype, m_NodeId, and Olympe::GraphNode::name.
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 574 of file CommandSystem.cpp.
References m_NodeId.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 545 of file CommandSystem.cpp.
References Olympe::BT_Action, Olympe::BT_Condition, Olympe::BT_Decorator, Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_GraphId, m_NodeId, m_OldName, m_OldSubtype, and Olympe::GraphNode::name.
Here is the call graph for this function:
|
private |
Definition at line 243 of file CommandSystem.h.
|
private |
Definition at line 246 of file CommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 248 of file CommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 244 of file CommandSystem.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 245 of file CommandSystem.h.
Referenced by Undo().
|
private |
Definition at line 247 of file CommandSystem.h.
Referenced by Undo().