GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Static Public Member Functions | List of all members
gd::ParameterMetadataTools Class Reference

Static Public Member Functions

static void ParametersToObjectsContainer (gd::Project &project, const std::vector< gd::ParameterMetadata > &parameters, gd::ObjectsContainer &outputObjectsContainer)
 
static void IterateOverParameters (const std::vector< gd::Expression > &parameters, const std::vector< gd::ParameterMetadata > &parametersMetadata, std::function< void(const gd::ParameterMetadata &parameterMetadata, const gd::String &parameterValue, const gd::String &lastObjectName)> fn)
 
static size_t GetObjectParameterIndexFor (const std::vector< gd::ParameterMetadata > &parametersMetadata, size_t parameterIndex)
 

Member Function Documentation

size_t gd::ParameterMetadataTools::GetObjectParameterIndexFor ( const std::vector< gd::ParameterMetadata > &  parametersMetadata,
size_t  parameterIndex 
)
static

Given a parameter, return, if applicable, the index of the object parameter it's linked to.

void gd::ParameterMetadataTools::IterateOverParameters ( const std::vector< gd::Expression > &  parameters,
const std::vector< gd::ParameterMetadata > &  parametersMetadata,
std::function< void(const gd::ParameterMetadata &parameterMetadata, const gd::String &parameterValue, const gd::String &lastObjectName)>  fn 
)
static

Iterate over a list of parameters and their values. Callback function is called with the parameter metadata, its value and if applicable the name of the object it's linked to.


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