Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Olympe::SetParameterCommand Class Reference

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 &paramName, 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
 

Detailed Description

SetParameterCommand - Command to set a node parameter.

Definition at line 189 of file CommandSystem.h.

Constructor & Destructor Documentation

◆ SetParameterCommand()

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.

Member Function Documentation

◆ Execute()

void Olympe::SetParameterCommand::Execute ( )
overridevirtual

◆ GetDescription()

std::string Olympe::SetParameterCommand::GetDescription ( ) const
overridevirtual

Implements Olympe::EditorCommand.

Definition at line 422 of file CommandSystem.cpp.

References m_NewValue, and m_ParamName.

◆ Undo()

void Olympe::SetParameterCommand::Undo ( )
overridevirtual

Member Data Documentation

◆ m_GraphId

std::string Olympe::SetParameterCommand::m_GraphId
private

Definition at line 202 of file CommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NewValue

std::string Olympe::SetParameterCommand::m_NewValue
private

Definition at line 206 of file CommandSystem.h.

Referenced by Execute(), and GetDescription().

◆ m_NodeId

int Olympe::SetParameterCommand::m_NodeId
private

Definition at line 203 of file CommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_OldValue

std::string Olympe::SetParameterCommand::m_OldValue
private

Definition at line 205 of file CommandSystem.h.

Referenced by Undo().

◆ m_ParamName

std::string Olympe::SetParameterCommand::m_ParamName
private

Definition at line 204 of file CommandSystem.h.

Referenced by Execute(), GetDescription(), and Undo().


The documentation for this class was generated from the following files: