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::ComponentSchema Struct Reference

#include <PrefabLoader.h>

Public Member Functions

 ComponentSchema ()
 
 ComponentSchema (const std::string &name)
 
json ToJson () const
 

Static Public Member Functions

static ComponentSchema FromJson (const json &data)
 

Public Attributes

std::string componentName
 
std::string category
 
std::string description
 
std::vector< ParameterDefinitionparameters
 
bool isDeprecated
 

Detailed Description

Definition at line 54 of file PrefabLoader.h.

Constructor & Destructor Documentation

◆ ComponentSchema() [1/2]

Olympe::ComponentSchema::ComponentSchema ( )
inline

Definition at line 62 of file PrefabLoader.h.

◆ ComponentSchema() [2/2]

Olympe::ComponentSchema::ComponentSchema ( const std::string &  name)
inlineexplicit

Definition at line 67 of file PrefabLoader.h.

Member Function Documentation

◆ FromJson()

ComponentSchema ComponentSchema::FromJson ( const json data)
static

Definition at line 12 of file PrefabLoader.cpp.

References componentName, and GetComponentTypeID_Static().

Referenced by Olympe::PrefabLoader::ParseComponentSchema().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToJson()

json ComponentSchema::ToJson ( ) const

Definition at line 11 of file PrefabLoader.cpp.

References category, componentName, description, GetComponentTypeID_Static(), isDeprecated, parameters, and ToJson().

Referenced by ToJson().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ category

std::string Olympe::ComponentSchema::category

Definition at line 57 of file PrefabLoader.h.

Referenced by ToJson().

◆ componentName

std::string Olympe::ComponentSchema::componentName

Definition at line 56 of file PrefabLoader.h.

Referenced by FromJson(), and ToJson().

◆ description

std::string Olympe::ComponentSchema::description

Definition at line 58 of file PrefabLoader.h.

Referenced by ToJson().

◆ isDeprecated

bool Olympe::ComponentSchema::isDeprecated

Definition at line 60 of file PrefabLoader.h.

Referenced by ToJson().

◆ parameters

std::vector<ParameterDefinition> Olympe::ComponentSchema::parameters

Definition at line 59 of file PrefabLoader.h.

Referenced by ToJson().


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