Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
DeleteLinkCommand.h
Go to the documentation of this file.
1/**
2 * @file DeleteLinkCommand.h
3 * @brief Command to delete a link
4 * @author Olympe Engine - NodeGraph Core v2.0
5 * @date 2025-02-19
6 */
7
8#pragma once
9
10#include "../CommandSystem.h"
11#include "../GraphDocument.h"
12
13namespace Olympe
14{
15namespace NodeGraph
16{
17namespace Commands
18{
19
20/**
21 * @class DeleteLinkCommand
22 * @brief Commande pour supprimer un lien
23 */
25{
26public:
27 /**
28 * @brief Constructeur
29 * @param document GraphDocument cible
30 * @param linkId ID du lien à supprimer
31 */
33
34 bool Execute() override;
35 bool Undo() override;
36 std::string GetDescription() const override;
37
38private:
42 bool m_wasExecuted = false;
43};
44
45} // namespace Commands
46} // namespace NodeGraph
47} // namespace Olympe
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
bool Undo() override
Undo the command.
std::string GetDescription() const override
Get description of the command.
DeleteLinkCommand(GraphDocument *document, uint32_t linkId)
Constructeur.
bool Execute() override
Execute the command.
Main document class for a node graph.
Base interface for all commands.
< Provides AssetID and INVALID_ASSET_ID