GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Static Public Member Functions | List of all members
gd::ProjectScopedContainers Class Reference

Holds references to variables, objects, properties and other containers. More...

#include <ProjectScopedContainers.h>

Public Member Functions

 ProjectScopedContainers (const gd::ObjectsContainersList &objectsContainersList_, const gd::VariablesContainersList &variablesContainersList_, const gd::PropertiesContainersList &propertiesContainersList_)
 
ProjectScopedContainersAddPropertiesContainer (const gd::PropertiesContainer &container)
 
ProjectScopedContainersAddParameters (const std::vector< gd::ParameterMetadata > &parameters)
 
template<class ReturnType >
ReturnType MatchIdentifierWithName (const gd::String &name, std::function< ReturnType()> objectCallback, std::function< ReturnType()> variableCallback, std::function< ReturnType()> propertyCallback, std::function< ReturnType()> parameterCallback, std::function< ReturnType()> notFoundCallback) const
 
void ForEachIdentifierMatchingSearch (const gd::String &search, std::function< void(const gd::String &name, const ObjectConfiguration *objectConfiguration)> objectCallback, std::function< void(const gd::String &name, const gd::Variable &variable)> variableCallback, std::function< void(const gd::NamedPropertyDescriptor &property)> propertyCallback, std::function< void(const gd::ParameterMetadata &parameter)> parameterCallback) const
 
const gd::ObjectsContainersListGetObjectsContainersList () const
 
const gd::VariablesContainersListGetVariablesContainersList () const
 
const gd::PropertiesContainersListGetPropertiesContainersList () const
 
const std::vector< const std::vector< gd::ParameterMetadata > * > & GetParametersVectorsList () const
 
 ProjectScopedContainers ()
 

Static Public Member Functions

static ProjectScopedContainers MakeNewProjectScopedContainersForProjectAndLayout (const gd::Project &project, const gd::Layout &layout)
 
static ProjectScopedContainers MakeNewProjectScopedContainersFor (const gd::ObjectsContainer &globalObjectsContainers, const gd::ObjectsContainer &objectsContainers)
 

Detailed Description

Holds references to variables, objects, properties and other containers.

This is useful to access elements of a project from a specific location, honoring the scope of each element.

For example, in an expression, when an identifier is written, this class is used to know what this identifier refers too.

Constructor & Destructor Documentation

◆ ProjectScopedContainers()

gd::ProjectScopedContainers::ProjectScopedContainers ( )
inline

Do not use - should be private but accessible to let Emscripten create a temporary.


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