![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Commande pour supprimer un lien. More...
#include <DeleteLinkCommand.h>
Inheritance diagram for Olympe::NodeGraph::Commands::DeleteLinkCommand:
Collaboration diagram for Olympe::NodeGraph::Commands::DeleteLinkCommand:Public Member Functions | |
| DeleteLinkCommand (GraphDocument *document, uint32_t linkId) | |
| Constructeur. | |
| bool | Execute () override |
| Execute the command. | |
| bool | Undo () override |
| Undo the command. | |
| std::string | GetDescription () const override |
| Get description of the command. | |
Public Member Functions inherited from Olympe::NodeGraph::ICommand | |
| virtual | ~ICommand ()=default |
Private Attributes | |
| GraphDocument * | m_document = nullptr |
| uint32_t | m_linkId = 0 |
| LinkData | m_deletedLink |
| bool | m_wasExecuted = false |
Commande pour supprimer un lien.
Definition at line 24 of file DeleteLinkCommand.h.
| Olympe::NodeGraph::Commands::DeleteLinkCommand::DeleteLinkCommand | ( | GraphDocument * | document, |
| uint32_t | linkId | ||
| ) |
Constructeur.
| document | GraphDocument cible |
| linkId | ID du lien à supprimer |
|
overridevirtual |
Execute the command.
Implements Olympe::NodeGraph::ICommand.
|
overridevirtual |
Get description of the command.
Implements Olympe::NodeGraph::ICommand.
|
overridevirtual |
Undo the command.
Implements Olympe::NodeGraph::ICommand.
|
private |
Definition at line 41 of file DeleteLinkCommand.h.
|
private |
Definition at line 39 of file DeleteLinkCommand.h.
|
private |
Definition at line 40 of file DeleteLinkCommand.h.
Definition at line 42 of file DeleteLinkCommand.h.