![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Stateless validator for exec connections in VS graphs. More...
#include <VSConnectionValidator.h>
Static Public Member Functions | |
| static bool | IsExecConnectionValid (const TaskGraphTemplate &graph, int srcNodeID, const std::string &srcPinName, int dstNodeID) |
| Returns true if adding an exec connection from srcNodeID/srcPinName to dstNodeID would be valid (no self-loop, no duplicate output pin, no cycle). | |
Stateless validator for exec connections in VS graphs.
All methods are static. The class holds no state.
C++14 compliant.
Definition at line 34 of file VSConnectionValidator.h.
|
static |
Returns true if adding an exec connection from srcNodeID/srcPinName to dstNodeID would be valid (no self-loop, no duplicate output pin, no cycle).
Logs the rejection reason via SYSTEM_LOG if returning false.
| graph | The current graph template to validate against. |
| srcNodeID | Source node identifier. |
| srcPinName | Source exec-out pin name (e.g. "Out", "Then"). |
| dstNodeID | Destination node identifier. |
Definition at line 45 of file VSConnectionValidator.cpp.
References GetComponentTypeID_Static(), Olympe::NodeTypeAcceptsExecInput(), SYSTEM_LOG, and Olympe::ExecPinConnection::TargetNodeID.
Here is the call graph for this function: