![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include "ComponentDefinition.h"#include "ParameterSchema.h"#include "third_party/nlohmann/json.hpp"#include "system/system_utils.h"#include <algorithm>#include <cctype>#include <sstream>
Include dependency graph for ComponentDefinition.cpp:Go to the source code of this file.
Functions | |
| static uint8_t | ClampColorValue (int value) |
| std::string | ParameterTypeToString (ComponentParameter::Type type) |
| ComponentParameter | ParseParameterWithSchema (const std::string &componentType, const std::string ¶mName, const nlohmann::json &jsonValue) |
Definition at line 23 of file ComponentDefinition.cpp.
References GetComponentTypeID_Static().
Referenced by ComponentParameter::AsColor(), and ParseParameterWithSchema().
Here is the call graph for this function:
Here is the caller graph for this function:| 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: