![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Implementation of BehaviorTreeAsset -> Olympe::NodeGraph conversion. More...
#include "BTGraphDocumentConverter.h"#include "../BlueprintEditor/BTNodeGraphManager.h"#include "../AI/BTGraphLayoutEngine.h"#include "../third_party/nlohmann/json.hpp"#include <iostream>
Include dependency graph for BTGraphDocumentConverter.cpp:Go to the source code of this file.
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
| namespace | Olympe::NodeGraphShared |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| static NodeType | Olympe::NodeGraphShared::MapBTToEditor (BTNodeType t) |
Implementation of BehaviorTreeAsset -> Olympe::NodeGraph conversion.
Converts a runtime BehaviorTreeAsset into an Olympe::NodeGraph by building an intermediate JSON document and using NodeGraph::FromJson() to preserve original BT node IDs. This ensures that NodeGraphPanel::SetActiveDebugNode() can highlight the correct node using the BT runtime node index directly.
Layout positions are computed via BTGraphLayoutEngine when nodes have no stored positions (all zeros).
Definition in file BTGraphDocumentConverter.cpp.
Definition at line 21 of file BTGraphDocumentConverter.cpp.