![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Converts legacy BT v2 JSON graphs to ATS VS v4 JSON format (Phase 6). More...
#include <string>#include <vector>#include "../TaskSystem/TaskGraphTemplate.h"#include "../third_party/nlohmann/json.hpp"
Include dependency graph for BTtoVSMigrator.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::BTtoVSMigrator |
| Converts a BT v2 JSON object to a TaskGraphTemplate (VS v4). More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Converts legacy BT v2 JSON graphs to ATS VS v4 JSON format (Phase 6).
BTtoVSMigrator translates a "BehaviorTree" schema_version 2 (or lower) JSON document to the ATS VisualScript schema_version 4 format consumed by TaskGraphLoader.
Node type mapping: BT v2 type -> VS v4 TaskNodeType ───────────────────────────────────────── "Selector" -> TaskNodeType::Branch (conditions as children) "Sequence" -> TaskNodeType::VSSequence "Action" -> TaskNodeType::AtomicTask "Condition" -> TaskNodeType::Branch (single condition leaf) "Decorator" -> TaskNodeType::AtomicTask (inline, stripped) "Root" / "Start" -> TaskNodeType::EntryPoint
Connection mapping: BT parent->child -> ExecPinConnection { parent, "Out", child, "In" }
Blackboard mapping: BT blackboard entries are copied verbatim to the VS graph's Blackboard.
C++14 compliant — no std::optional, structured bindings, std::filesystem.
Definition in file BTtoVSMigrator.h.