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::DuplicateNodeCommand Class Reference

DuplicateNodeCommand - Command to duplicate a node. More...

#include <BPCommandSystem.h>

+ Inheritance diagram for Olympe::Blueprint::DuplicateNodeCommand:
+ Collaboration diagram for Olympe::Blueprint::DuplicateNodeCommand:

Public Member Functions

 DuplicateNodeCommand (const std::string &graphId, int sourceNodeId)
 
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_SourceNodeId
 
int m_CreatedNodeId
 
json m_NodeData
 

Detailed Description

DuplicateNodeCommand - Command to duplicate a node.

Definition at line 216 of file BPCommandSystem.h.

Constructor & Destructor Documentation

◆ DuplicateNodeCommand()

Olympe::Blueprint::DuplicateNodeCommand::DuplicateNodeCommand ( const std::string &  graphId,
int  sourceNodeId 
)

Definition at line 438 of file BPCommandSystem.cpp.

Member Function Documentation

◆ Execute()

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

◆ GetDescription()

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

Implements Olympe::Blueprint::EditorCommand.

Definition at line 502 of file BPCommandSystem.cpp.

References m_SourceNodeId.

◆ Undo()

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

Member Data Documentation

◆ m_CreatedNodeId

int Olympe::Blueprint::DuplicateNodeCommand::m_CreatedNodeId
private

Definition at line 228 of file BPCommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_GraphId

std::string Olympe::Blueprint::DuplicateNodeCommand::m_GraphId
private

Definition at line 226 of file BPCommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NodeData

json Olympe::Blueprint::DuplicateNodeCommand::m_NodeData
private

Definition at line 229 of file BPCommandSystem.h.

Referenced by Execute().

◆ m_SourceNodeId

int Olympe::Blueprint::DuplicateNodeCommand::m_SourceNodeId
private

Definition at line 227 of file BPCommandSystem.h.

Referenced by Execute(), and GetDescription().


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