![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <Graph.h>
Public Member Functions | |
| nlohmann::json | ToJson () const |
Static Public Member Functions | |
| static Graph | FromJson (const nlohmann::json &j) |
Public Attributes | |
| std::vector< Node > | nodes |
|
static |
Definition at line 23 of file Graph.cpp.
References JsonHelper::ForEachInArray(), GetComponentTypeID_Static(), JsonHelper::GetFloat(), JsonHelper::GetInt(), JsonHelper::GetString(), Node::id, JsonHelper::IsArray(), and nodes.
Referenced by LoadGraphFromFile().
Here is the call graph for this function:
Here is the caller graph for this function:| nlohmann::json Graph::ToJson | ( | ) | const |
Definition at line 6 of file Graph.cpp.
References GetComponentTypeID_Static(), Node::id, and nodes.
Referenced by SaveGraphToFile().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector<Node> Graph::nodes |
Definition at line 16 of file Graph.h.
Referenced by FromJson(), and ToJson().