Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Graph Struct Reference

#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< Nodenodes
 

Detailed Description

Definition at line 14 of file Graph.h.

Member Function Documentation

◆ FromJson()

Graph Graph::FromJson ( const nlohmann::json j)
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:

◆ ToJson()

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:

Member Data Documentation

◆ nodes

std::vector<Node> Graph::nodes

Definition at line 16 of file Graph.h.

Referenced by FromJson(), and ToJson().


The documentation for this struct was generated from the following files: