![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <string>#include <map>#include <memory>#include <SDL3/SDL.h>#include "vector.h"#include "ECS_Entity.h"
Include dependency graph for ComponentDefinition.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | ComponentParameter |
| struct | ComponentDefinition |
Namespaces | |
| namespace | nlohmann |
Functions | |
| std::string | ParameterTypeToString (ComponentParameter::Type type) |
| ComponentParameter | ParseParameterWithSchema (const std::string &componentType, const std::string ¶mName, const nlohmann::json &jsonValue) |
| std::string ParameterTypeToString | ( | ComponentParameter::Type | type | ) |
Definition at line 29 of file ComponentDefinition.cpp.
References ComponentParameter::Array, ComponentParameter::Bool, ComponentParameter::Color, ComponentParameter::EntityRef, ComponentParameter::Float, ComponentParameter::Int, ComponentParameter::String, ComponentParameter::Vector2, and ComponentParameter::Vector3.
Referenced by ParseParameterWithSchema().
Here is the caller graph for this function:| ComponentParameter ParseParameterWithSchema | ( | const std::string & | componentType, |
| const std::string & | paramName, | ||
| const nlohmann::json & | jsonValue | ||
| ) |
Definition at line 396 of file ComponentDefinition.cpp.
References ComponentParameter::Array, ComponentParameter::Bool, ClampColorValue(), ComponentParameter::Color, ComponentParameter::EntityRef, ComponentParameter::Float, ComponentParameter::FromArray(), ComponentParameter::FromBool(), ComponentParameter::FromColor(), ComponentParameter::FromEntityRef(), ComponentParameter::FromFloat(), ComponentParameter::FromInt(), ComponentParameter::FromString(), ComponentParameter::FromVector2(), ComponentParameter::FromVector3(), ParameterSchemaRegistry::GetComponentSchema(), GetComponentTypeID_Static(), ParameterSchemaRegistry::GetInstance(), ComponentParameter::Int, INVALID_ENTITY_ID, ComponentSchema::parameters, ParameterTypeToString(), ComponentParameter::String, SYSTEM_LOG, ComponentParameter::Vector2, and ComponentParameter::Vector3.
Referenced by ComponentDefinition::FromJSON().
Here is the call graph for this function:
Here is the caller graph for this function: