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

Phase 8 — Migrates legacy blueprint data to the flat-dictionary subgraph format. More...

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

Go to the source code of this file.

Classes

class  Olympe::SubgraphMigrator
 Converts legacy blueprint JSON to the Phase 8 subgraph flat-dict format. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Phase 8 — Migrates legacy blueprint data to the flat-dictionary subgraph format.

Legacy format (any schema_version ≤ 4 that has data.nodes directly):

{ "data": { "nodes": [...], "links": [...] } }

New flat-dictionary format (schema_version 5):

{
"data": {
"rootGraph": { "nodes": [...], "links": [...] },
"subgraphs": {}
}
}

SubgraphMigrator is stateless; all methods are const-correct or static. C++14 compliant — no C++17/20 features.

Definition in file SubgraphMigrator.h.