![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
DeleteNodeCommand - Command to delete a node from graph. More...
#include <BTEditorCommand.h>
Inheritance diagram for Olympe::DeleteNodeCommand:
Collaboration diagram for Olympe::DeleteNodeCommand:Classes | |
| struct | Connection |
Public Member Functions | |
| DeleteNodeCommand (BehaviorTreeAsset *tree, uint32_t nodeId) | |
| void | Execute () override |
| Execute the command. | |
| void | Undo () override |
| Undo the command. | |
| std::string | GetDescription () const override |
| Get a human-readable description of the command. | |
| DeleteNodeCommand (const std::string &graphId, int nodeId) | |
| void | Execute () override |
| Execute the command. | |
| void | Undo () override |
| Undo the command. | |
| std::string | GetDescription () const override |
| Get a human-readable description of the command. | |
Public Member Functions inherited from Olympe::BTEditorCommand | |
| virtual | ~BTEditorCommand ()=default |
Public Member Functions inherited from Olympe::EditorCommand | |
| virtual | ~EditorCommand ()=default |
Private Attributes | |
| BehaviorTreeAsset * | m_tree |
| uint32_t | m_nodeId |
| BTNode | m_savedNode |
| std::vector< Connection > | m_savedConnections |
| std::string | m_GraphId |
| int | m_NodeId |
| json | m_NodeData |
DeleteNodeCommand - Command to delete a node from graph.
Command to delete a node from the tree.
Definition at line 126 of file BTEditorCommand.h.
| Olympe::DeleteNodeCommand::DeleteNodeCommand | ( | BehaviorTreeAsset * | tree, |
| uint32_t | nodeId | ||
| ) |
Definition at line 134 of file BTEditorCommand.cpp.
References GetComponentTypeID_Static(), m_savedConnections, m_savedNode, and Olympe::DeleteNodeCommand::Connection::parentId.
Here is the call graph for this function:Definition at line 201 of file CommandSystem.cpp.
|
overridevirtual |
Execute the command.
Implements Olympe::BTEditorCommand.
Definition at line 177 of file BTEditorCommand.cpp.
References m_nodeId, m_tree, and BehaviorTreeAsset::RemoveNode().
Here is the call graph for this function:
|
overridevirtual |
Execute the command.
Implements Olympe::BTEditorCommand.
|
overridevirtual |
Get a human-readable description of the command.
Implements Olympe::BTEditorCommand.
Definition at line 222 of file BTEditorCommand.cpp.
References m_nodeId.
|
overridevirtual |
Get a human-readable description of the command.
Implements Olympe::BTEditorCommand.
|
overridevirtual |
Undo the command.
Implements Olympe::BTEditorCommand.
Definition at line 186 of file BTEditorCommand.cpp.
References BTNode::childIds, BTNode::decoratorChildId, GetComponentTypeID_Static(), BehaviorTreeAsset::GetNode(), m_nodeId, m_savedConnections, m_savedNode, m_tree, and BehaviorTreeAsset::nodes.
Here is the call graph for this function:
|
overridevirtual |
Undo the command.
Implements Olympe::BTEditorCommand.
|
private |
Definition at line 125 of file CommandSystem.h.
|
private |
Definition at line 127 of file CommandSystem.h.
|
private |
Definition at line 137 of file BTEditorCommand.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 126 of file CommandSystem.h.
|
private |
Definition at line 145 of file BTEditorCommand.h.
Referenced by DeleteNodeCommand(), and Undo().
|
private |
Definition at line 138 of file BTEditorCommand.h.
Referenced by DeleteNodeCommand(), and Undo().
|
private |
Definition at line 136 of file BTEditorCommand.h.