4#include "Engine/Network/NetworkManager.h"
5#include "Engine/UndoRedo/UndoCommand.h"
13 : nodeId_(nodeId), oldPos_(oldPos), newPos_(newPos)
20 nm().nodePositionChanged(nodeId_, oldPos_);
26 nm().nodePositionChanged(nodeId_, newPos_);
29 UndoCommandType type()
const override {
return UndoCommandType::MoveNode; }
Basic attribute, parameter, and node types for Enzo.
uint64_t NodeId
The unique ID assigned to each node in the network.
Definition Types.h:306
Definition MoveNodeCommand.h:10
Node & getNode(nt::NodeId nodeId)
Returns a reference to the Node with the given NodeId.
Definition NetworkManager.cpp:130
void setPosition(Vector2 pos)
Sets the node's position in the network graph.
Definition Node.h:130
Definition UndoCommand.h:8