25#include "../TaskSystem/TaskGraphTemplate.h"
96 const std::vector<GraphValidationError>&
GetErrors()
const;
ComponentTypeID GetComponentTypeID_Static()
Singleton that validates a TaskGraphTemplate and tracks selected node.
void CheckCycles(const TaskGraphTemplate &graph)
Flags cycles detected by DFS over ExecConnections.
const std::vector< GraphValidationError > & GetErrors() const
Returns the current list of validation findings.
int GetSelectedNodeId() const
Returns the node ID set by the most recent OnErrorClick() call (-1 if none).
void Validate(const TaskGraphTemplate &graph)
Clears previous results and validates graph.
bool HasErrors() const
Returns true if there are any findings of any severity.
void CheckMissingConnections(const TaskGraphTemplate &graph)
Flags SubGraph nodes that have no SubGraphPath set.
void AddError(int nodeId, const std::string &message, ValidationSeverity severity)
void CheckDeadEnds(const TaskGraphTemplate &graph)
Flags nodes whose exec-output pins have no outgoing connection.
bool HasCriticalErrors() const
Returns true if any finding has severity Critical.
std::vector< GraphValidationError > m_Errors
static GraphValidationPanel & Get()
Returns the single shared instance.
void Clear()
Clears all findings and resets the selected node.
void OnErrorClick(int nodeId)
Records nodeId as the currently selected node.
Immutable, shareable task graph asset.
< Provides AssetID and INVALID_ASSET_ID
ValidationSeverity
Indicates how serious a validation finding is.
A single validation finding.
ValidationSeverity severity
int nodeId
Offending node ID; -1 for graph-level errors.