Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
MoveNodeCommand.h
Go to the documentation of this file.
1/**
2 * @file MoveNodeCommand.h
3 * @brief Command for moving 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 MoveNodeCommand
18 * @brief Moves a node to a new position
19 */
20class MoveNodeCommand : public ICommand {
21public:
23
24 void Execute() override;
25 void Undo() override;
26 std::string GetDescription() const override;
27
28private:
33};
34
35} // namespace NodeGraph
36} // namespace Olympe
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
Main document class for a node graph.
Base interface for all commands.
Moves a node to a new position.
void Undo() override
Undo the command.
void Execute() override
Execute the command.
std::string GetDescription() const override
Get description of the command.
< Provides AssetID and INVALID_ASSET_ID