![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Handles migration from old JSON formats to v2. More...
#include <GraphMigrator.h>
Static Public Member Functions | |
| static GraphDocument | LoadWithMigration (const json &j) |
| Load graph with automatic migration. | |
Static Private Member Functions | |
| static int | DetectSchemaVersion (const json &j) |
| Detect schema version. | |
| static json | MigrateLegacyBTToV2 (const json &v1) |
| Migrate legacy BT format to v2. | |
| static json | MigrateV1BlueprintToV2 (const json &v1) |
| Migrate v1 Blueprint format to v2. | |
Handles migration from old JSON formats to v2.
Definition at line 23 of file GraphMigrator.h.
Detect schema version.
| j | JSON object |
Definition at line 50 of file GraphMigrator.cpp.
References GetComponentTypeID_Static(), and JsonHelper::GetInt().
Referenced by LoadWithMigration().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Load graph with automatic migration.
| j | JSON object |
Definition at line 20 of file GraphMigrator.cpp.
References DetectSchemaVersion(), Olympe::NodeGraph::GraphDocument::FromJson(), GetComponentTypeID_Static(), MigrateLegacyBTToV2(), MigrateV1BlueprintToV2(), and SYSTEM_LOG.
Referenced by Olympe::NodeGraph::NodeGraphManager::LoadGraph().
Here is the call graph for this function:
Here is the caller graph for this function:Migrate legacy BT format to v2.
| v1 | Legacy JSON |
Definition at line 87 of file GraphMigrator.cpp.
References GetComponentTypeID_Static(), JsonHelper::GetFloat(), JsonHelper::GetInt(), and JsonHelper::GetString().
Referenced by LoadWithMigration().
Here is the call graph for this function:
Here is the caller graph for this function:Migrate v1 Blueprint format to v2.
| v1 | v1 JSON |
Definition at line 252 of file GraphMigrator.cpp.
References GetComponentTypeID_Static(), and JsonHelper::GetString().
Referenced by LoadWithMigration().
Here is the call graph for this function:
Here is the caller graph for this function: