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

DeleteNodeCommand - Command to delete a node from graph. More...

#include <BPCommandSystem.h>

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

Public Member Functions

 DeleteNodeCommand (const std::string &graphId, int nodeId)
 
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
 
json m_NodeData
 

Detailed Description

DeleteNodeCommand - Command to delete a node from graph.

Definition at line 119 of file BPCommandSystem.h.

Constructor & Destructor Documentation

◆ DeleteNodeCommand()

Olympe::Blueprint::DeleteNodeCommand::DeleteNodeCommand ( const std::string &  graphId,
int  nodeId 
)

Definition at line 208 of file BPCommandSystem.cpp.

Member Function Documentation

◆ Execute()

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

◆ GetDescription()

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

Implements Olympe::Blueprint::EditorCommand.

Definition at line 266 of file BPCommandSystem.cpp.

References m_NodeId.

◆ Undo()

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

Member Data Documentation

◆ m_GraphId

std::string Olympe::Blueprint::DeleteNodeCommand::m_GraphId
private

Definition at line 129 of file BPCommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NodeData

json Olympe::Blueprint::DeleteNodeCommand::m_NodeData
private

Definition at line 131 of file BPCommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NodeId

int Olympe::Blueprint::DeleteNodeCommand::m_NodeId
private

Definition at line 130 of file BPCommandSystem.h.

Referenced by Execute(), and GetDescription().


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