4#include "Engine/Network/NetworkManager.h"
5#include "Engine/UndoRedo/UndoCommand.h"
17 if (prev_.has_value())
19 if (!nm().isValidNode(*prev_))
return;
30 if (!nm().isValidNode(next_))
return;
34 UndoCommandType type()
const override {
return UndoCommandType::ChangePrimaryNode; }
37 std::optional<NodeId> prev_;
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 ChangePrimaryNodeCommand.h:11
void clearPrimaryNode()
Clears the primary node so none is primary.
Definition NetworkManager.cpp:165
void setPrimaryNode(NodeId nodeId)
Sets the given NodeId as the primary node, releasing the previous one.
Definition NetworkManager.cpp:154
Definition UndoCommand.h:8