4#include "Engine/Network/NetworkManager.h"
5#include "Engine/Network/NodeSnapshot.h"
6#include "Engine/UndoRedo/UndoCommand.h"
21 void redo()
override { snapshot_.
restore(nodeId_); }
23 UndoCommandType type()
const override {
return UndoCommandType::CreateNode; }
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 CreateNodeCommand.h:11
void deleteNode(NodeId nodeId)
Deletes a node, pushing an undo command.
Definition NetworkManager.cpp:52
Everything one node carries, held apart from the network so it can be rebuilt.
Definition NodeSnapshot.h:25
void restore(NodeId nodeId) const
Rebuilds the node under the given id with the path, position, and parameters it had.
Definition NodeSnapshot.cpp:22
static NodeSnapshot capture(Node &node)
Returns a snapshot of the node as it stands.
Definition NodeSnapshot.cpp:8
Definition UndoCommand.h:8