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

EditNodeCommand - Command to edit node properties (name, type-specific fields) More...

#include <BPCommandSystem.h>

+ Inheritance diagram for Olympe::Blueprint::EditNodeCommand:
+ Collaboration diagram for Olympe::Blueprint::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::Blueprint::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
 

Detailed Description

EditNodeCommand - Command to edit node properties (name, type-specific fields)

Definition at line 235 of file BPCommandSystem.h.

Constructor & Destructor Documentation

◆ EditNodeCommand()

Olympe::Blueprint::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 511 of file BPCommandSystem.cpp.

Member Function Documentation

◆ Execute()

void Olympe::Blueprint::EditNodeCommand::Execute ( )
overridevirtual

◆ GetDescription()

std::string Olympe::Blueprint::EditNodeCommand::GetDescription ( ) const
overridevirtual

Implements Olympe::Blueprint::EditorCommand.

Definition at line 581 of file BPCommandSystem.cpp.

References m_NodeId.

◆ Undo()

void Olympe::Blueprint::EditNodeCommand::Undo ( )
overridevirtual

Member Data Documentation

◆ m_GraphId

std::string Olympe::Blueprint::EditNodeCommand::m_GraphId
private

Definition at line 247 of file BPCommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NewName

std::string Olympe::Blueprint::EditNodeCommand::m_NewName
private

Definition at line 250 of file BPCommandSystem.h.

Referenced by Execute().

◆ m_NewSubtype

std::string Olympe::Blueprint::EditNodeCommand::m_NewSubtype
private

Definition at line 252 of file BPCommandSystem.h.

Referenced by Execute().

◆ m_NodeId

int Olympe::Blueprint::EditNodeCommand::m_NodeId
private

Definition at line 248 of file BPCommandSystem.h.

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

◆ m_OldName

std::string Olympe::Blueprint::EditNodeCommand::m_OldName
private

Definition at line 249 of file BPCommandSystem.h.

Referenced by Undo().

◆ m_OldSubtype

std::string Olympe::Blueprint::EditNodeCommand::m_OldSubtype
private

Definition at line 251 of file BPCommandSystem.h.

Referenced by Undo().


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