9#include "../../system/system_utils.h"
19 , m_previousState(
false)
36 <<
" breakpoint -> " << (
m_newState ?
"ON" :
"OFF") << std::endl;
52 return std::string(
"Toggle Breakpoint on node ") + std::to_string(
m_nodeId);
ComponentTypeID GetComponentTypeID_Static()
Command to toggle a node breakpoint (Phase 2.0)
Manages per-node annotations (breakpoints, comments, colors)
void SetBreakpoint(int nodeId, bool enabled)
Set breakpoint state for a node.
NodeAnnotation * GetAnnotation(int nodeId)
Get annotation for a node (non-const)
void Execute() override
Execute the command.
ToggleNodeBreakpointCommand(NodeAnnotationsManager *annotations, int nodeId)
Construct the command.
void Undo() override
Undo the command.
std::string GetDescription() const override
Get description of the command.
NodeAnnotationsManager * m_annotations
< Provides AssetID and INVALID_ASSET_ID
Holds annotation data for a single node.