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
Olympe::ComponentData Struct Reference

#include <PrefabLoader.h>

Public Member Functions

 ComponentData ()
 
 ComponentData (const std::string &type)
 
json ToJson () const
 

Static Public Member Functions

static ComponentData FromJson (const json &data)
 

Public Attributes

std::string componentType
 
std::string componentName
 
std::map< std::string, std::string > properties
 
bool enabled
 

Detailed Description

Definition at line 76 of file PrefabLoader.h.

Constructor & Destructor Documentation

◆ ComponentData() [1/2]

Olympe::ComponentData::ComponentData ( )
inline

Definition at line 83 of file PrefabLoader.h.

◆ ComponentData() [2/2]

Olympe::ComponentData::ComponentData ( const std::string &  type)
inlineexplicit

Definition at line 88 of file PrefabLoader.h.

Member Function Documentation

◆ FromJson()

ComponentData Olympe::ComponentData::FromJson ( const json data)
static

Definition at line 15 of file PrefabLoader.cpp.

References componentType, and GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ ToJson()

json Olympe::ComponentData::ToJson ( ) const

Definition at line 14 of file PrefabLoader.cpp.

References componentName, componentType, enabled, GetComponentTypeID_Static(), and properties.

+ Here is the call graph for this function:

Member Data Documentation

◆ componentName

std::string Olympe::ComponentData::componentName

Definition at line 79 of file PrefabLoader.h.

Referenced by ToJson().

◆ componentType

std::string Olympe::ComponentData::componentType

Definition at line 78 of file PrefabLoader.h.

Referenced by FromJson(), and ToJson().

◆ enabled

bool Olympe::ComponentData::enabled

Definition at line 81 of file PrefabLoader.h.

Referenced by ToJson().

◆ properties

std::map<std::string, std::string> Olympe::ComponentData::properties

Definition at line 80 of file PrefabLoader.h.

Referenced by ToJson().


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