Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs
TaskGraphMigrator_v3_to_v4.h File Reference

Migrates task graph JSON from schema v3 (BT-style) to schema v4 (VS-style). More...

#include <string>
#include <vector>
#include "../third_party/nlohmann/json.hpp"
+ Include dependency graph for TaskGraphMigrator_v3_to_v4.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::TaskGraphMigrator_v3_to_v4
 Converts task graph JSON from schema v3 to schema v4 (VisualScript). More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Typedefs

using json = nlohmann::json
 

Detailed Description

Migrates task graph JSON from schema v3 (BT-style) to schema v4 (VS-style).

Author
Olympe Engine
Date
2026-03-08

Schema v3 uses a flat node list with NextOnSuccess / NextOnFailure integer fields to express control flow (Behavior-Tree-style).

Schema v4 replaces those fields with explicit ExecConnections and DataConnections arrays (Visual-Script-style), adds graphType, and bumps schema_version to 4.

Usage
std::vector<std::string> errors;
bool ok = TaskGraphMigrator_v3_to_v4::Migrate("input_v3.json",
"output_v4.json",
errors);
if (!ok) {
for (auto& e : errors) std::cerr << e << "\n";
}
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56

C++14 compliant - no C++17/20 features.

Definition in file TaskGraphMigrator_v3_to_v4.h.

Typedef Documentation

◆ json

Definition at line 36 of file TaskGraphMigrator_v3_to_v4.h.