![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
SetParameterCommand - Command to set a node parameter. More...
#include <CommandSystem.h>
Inheritance diagram for Olympe::SetParameterCommand:
Collaboration diagram for Olympe::SetParameterCommand:Public Member Functions | |
| SetParameterCommand (const std::string &graphId, int nodeId, const std::string ¶mName, const std::string &oldValue, const std::string &newValue) | |
| 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_ParamName |
| std::string | m_OldValue |
| std::string | m_NewValue |
SetParameterCommand - Command to set a node parameter.
Definition at line 189 of file CommandSystem.h.
| Olympe::SetParameterCommand::SetParameterCommand | ( | const std::string & | graphId, |
| int | nodeId, | ||
| const std::string & | paramName, | ||
| const std::string & | oldValue, | ||
| const std::string & | newValue | ||
| ) |
Definition at line 392 of file CommandSystem.cpp.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 404 of file CommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_GraphId, m_NewValue, m_NodeId, m_ParamName, and Olympe::NodeGraph::SetNodeParameter().
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 422 of file CommandSystem.cpp.
References m_NewValue, and m_ParamName.
|
overridevirtual |
Implements Olympe::EditorCommand.
Definition at line 413 of file CommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_GraphId, m_NodeId, m_OldValue, m_ParamName, and Olympe::NodeGraph::SetNodeParameter().
Here is the call graph for this function:
|
private |
Definition at line 202 of file CommandSystem.h.
|
private |
Definition at line 206 of file CommandSystem.h.
Referenced by Execute(), and GetDescription().
|
private |
Definition at line 203 of file CommandSystem.h.
|
private |
Definition at line 205 of file CommandSystem.h.
Referenced by Undo().
|
private |
Definition at line 204 of file CommandSystem.h.
Referenced by Execute(), GetDescription(), and Undo().