Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
DeleteNodeCommand.h
Go to the documentation of this file.
1/**
2 * @file DeleteNodeCommand.h
3 * @brief Command for deleting a node
4 * @author Olympe Engine
5 * @date 2026-02-18
6 */
7
8#pragma once
9
10#include "../CommandSystem.h"
11#include "../GraphDocument.h"
12
13namespace Olympe {
14namespace NodeGraph {
15
16/**
17 * @class DeleteNodeCommand
18 * @brief Deletes a node from the graph
19 */
21public:
23
24 void Execute() override;
25 void Undo() override;
26 std::string GetDescription() const override;
27
28private:
32 std::vector<LinkData> m_savedLinks;
33 bool m_wasExecuted = false;
34};
35
36} // namespace NodeGraph
37} // namespace Olympe
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
Deletes a node from the graph.
std::string GetDescription() const override
Get description of the command.
void Undo() override
Undo the command.
void Execute() override
Execute the command.
Main document class for a node graph.
Base interface for all commands.
< Provides AssetID and INVALID_ASSET_ID