21 , m_isExecuting(
false)
22 , m_breakpointHit(
false)
23 , m_skipBreakpointOnce(
false)
80 m_lastError =
"GraphRuntimeInstance: Node not found for ID "
172 if (
node.conditionRefs.empty())
Stateless runtime evaluator for ConditionPreset expressions.
ComponentTypeID GetComponentTypeID_Static()
Single-threaded execution instance for a TaskGraphTemplate.
void SetDynamicPinValue(const std::string &pinID, float value)
Sets the runtime value of a dynamic data pin.
bool IsBreakpointHit() const
Returns true when execution is paused at a breakpoint.
void SetBlackboardVariable(const std::string &key, float value)
Sets a Blackboard variable in the runtime environment.
bool EvaluateBranchConditions(const TaskNodeDefinition &node)
Evaluates all NodeConditionRefs on node and returns the result.
void ResumeFromBreakpoint()
Resumes execution after a breakpoint.
std::string m_lastError
Last error from condition evaluation.
void RemoveBreakpoint(int32_t nodeID)
Removes a previously registered breakpoint.
const TaskGraphTemplate & m_graph
Bound graph template (not owned)
std::vector< int32_t > m_executionStack
Active node IDs (front = next)
const std::string & GetLastError() const
Returns the last error message produced during execution.
RuntimeEnvironment m_environment
Blackboard + pin values.
const std::vector< int32_t > & GetActiveNodeIDs() const
Returns the IDs of all nodes currently on the execution stack.
bool m_isExecuting
True while stack is non-empty.
bool m_skipBreakpointOnce
Skip breakpoint check for one step after Resume.
bool m_breakpointHit
True when paused at a breakpoint.
void AddBreakpoint(int32_t nodeID)
Registers a breakpoint on a node.
bool IsExecuting() const
Returns true while there are nodes left to execute.
void StartExecution()
Initialises the execution stack and marks the instance as running.
bool StepExecution()
Advances execution by one node.
std::set< int32_t > m_breakpoints
Registered breakpoint node IDs.
GraphRuntimeInstance(const TaskGraphTemplate &graph)
Constructs an instance bound to the given graph template.
void SetDynamicPinValue(const std::string &pinID, float value)
Stores or overwrites the runtime value for a dynamic data pin.
void SetBlackboardVariable(const std::string &key, float value)
Stores or overwrites a Blackboard variable.
Immutable, shareable task graph asset.
int32_t RootNodeID
ID of the root node (must exist in Nodes)
const TaskNodeDefinition * GetNode(int32_t nodeId) const
Returns a pointer to the node with the given ID, or nullptr.
int32_t EntryPointID
ID of the EntryPoint node (for VS graphs)
< Provides AssetID and INVALID_ASSET_ID
@ Branch
If/Else conditional (Then / Else exec outputs)
constexpr int32_t NODE_INDEX_NONE
Sentinel value for "no node" in node index / ID fields.
One entry in a NodeBranch's conditions list.
Full description of a single node in the task graph.