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
ComponentDefinition Struct Reference

#include <ComponentDefinition.h>

Public Member Functions

bool HasParameter (const std::string &name) const
 
const ComponentParameterGetParameter (const std::string &name) const
 

Static Public Member Functions

static ComponentDefinition FromJSON (const nlohmann::json &jsonObj)
 

Public Attributes

std::string componentType
 
std::map< std::string, ComponentParameterparameters
 

Detailed Description

Definition at line 79 of file ComponentDefinition.h.

Member Function Documentation

◆ FromJSON()

ComponentDefinition ComponentDefinition::FromJSON ( const nlohmann::json jsonObj)
static

Definition at line 732 of file ComponentDefinition.cpp.

References componentType, GetComponentTypeID_Static(), ParseParameterWithSchema(), and SYSTEM_LOG.

Referenced by PrefabScanner::ParsePrefab().

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

◆ GetParameter()

const ComponentParameter * ComponentDefinition::GetParameter ( const std::string &  name) const

Definition at line 788 of file ComponentDefinition.cpp.

References GetComponentTypeID_Static(), and parameters.

+ Here is the call graph for this function:

◆ HasParameter()

bool ComponentDefinition::HasParameter ( const std::string &  name) const

Definition at line 783 of file ComponentDefinition.cpp.

References parameters.

Member Data Documentation

◆ componentType

std::string ComponentDefinition::componentType

Definition at line 81 of file ComponentDefinition.h.

Referenced by PrefabFactory::CreateEntityWithOverrides(), and FromJSON().

◆ parameters

std::map<std::string, ComponentParameter> ComponentDefinition::parameters

Definition at line 82 of file ComponentDefinition.h.

Referenced by GetParameter(), and HasParameter().


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