Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Functions
ComponentDefinition.cpp File Reference
#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 &paramName, const nlohmann::json &jsonValue)
 

Function Documentation

◆ ClampColorValue()

static uint8_t ClampColorValue ( int  value)
inlinestatic

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:

◆ ParameterTypeToString()

std::string ParameterTypeToString ( ComponentParameter::Type  type)

◆ ParseParameterWithSchema()

ComponentParameter ParseParameterWithSchema ( const std::string componentType,
const std::string paramName,
const nlohmann::json jsonValue 
)