13#include "../system/system_utils.h"
56 SYSTEM_LOG <<
"[TaskExecutionBridge] Installed (nodeFn="
57 << (
nodeFn !=
nullptr ?
"set" :
"null")
59 << (
bbFn !=
nullptr ?
"set" :
"null")
74 SYSTEM_LOG <<
"[TaskExecutionBridge] Uninstalled.\n";
ComponentTypeID GetComponentTypeID_Static()
Runtime bridge: routes live TaskRunner state to the Editor UI.
ECS system that iterates TaskRunnerComponent entities and drives ATS Visual Script graph execution ea...
Simple map-based blackboard for task graph runtime state.
static void s_OnPublish(EntityID entity, int nodeIndex, const LocalBlackboard *bb)
The actual callback registered with TaskSystem.
static void Uninstall()
Uninstall the bridge.
static BridgeSetNodeFn s_NodeFn
Stored Editor-side node hook. nullptr = no-op.
static bool IsInstalled()
Returns true when the bridge is currently installed.
static void Install(BridgeSetNodeFn nodeFn, BridgeSetBBFn bbFn)
Install the bridge and register Editor-side hooks.
static bool s_Installed
Whether the bridge is currently registered with TaskSystem.
static BridgeSetBBFn s_BBFn
Stored Editor-side blackboard hook. nullptr = no-op.
static void SetEditorPublishCallback(TaskEditorPublishFn fn)
Register a callback that receives live task-runner state each frame while a task is executing.
< Provides AssetID and INVALID_ASSET_ID
void(*)(int nodeIndex) BridgeSetNodeFn
Callback type: receives the local node index being executed.
void(*)(const LocalBlackboard *bb) BridgeSetBBFn
Callback type: receives a non-owning pointer to the frame blackboard.