97 const std::string& componentType,
std::string ParameterTypeToString(ComponentParameter::Type type)
ComponentParameter ParseParameterWithSchema(const std::string &componentType, const std::string ¶mName, const nlohmann::json &jsonValue)
ComponentTypeID GetComponentTypeID_Static()
const EntityID INVALID_ENTITY_ID
std::string componentType
const ComponentParameter * GetParameter(const std::string &name) const
std::map< std::string, ComponentParameter > parameters
bool HasParameter(const std::string &name) const
static ComponentDefinition FromJSON(const nlohmann::json &jsonObj)
std::shared_ptr< nlohmann::json > arrayValue
EntityID AsEntityRef() const
static ComponentParameter FromBool(bool value)
static ComponentParameter FromFloat(float value)
static ComponentParameter FromVector2(float x, float y)
static ComponentParameter FromEntityRef(EntityID entityId)
static ComponentParameter FromVector3(float x, float y, float z)
static ComponentParameter FromColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
const nlohmann::json & AsArray() const
std::string AsString() const
static ComponentParameter FromInt(int value)
static ComponentParameter FromArray(const nlohmann::json &arrayData)
SDL_Color AsColor() const
static ComponentParameter FromString(const std::string &value)