Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Functions
serialize_example.cpp File Reference
#include <fstream>
#include "Graph.h"
#include "../../Source/third_party/nlohmann/json.hpp"
+ Include dependency graph for serialize_example.cpp:

Go to the source code of this file.

Functions

void SaveGraphToFile (const Graph &g, const std::string &path)
 
Graph LoadGraphFromFile (const std::string &path)
 

Function Documentation

◆ LoadGraphFromFile()

Graph LoadGraphFromFile ( const std::string path)

Definition at line 12 of file serialize_example.cpp.

References Graph::FromJson(), and GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ SaveGraphToFile()

void SaveGraphToFile ( const Graph g,
const std::string path 
)

Definition at line 5 of file serialize_example.cpp.

References GetComponentTypeID_Static(), and Graph::ToJson().

+ Here is the call graph for this function: