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

A list of property containers, useful for accessing properties in a scoped way. More...

#include <PropertiesContainersList.h>

Public Member Functions

void Add (const gd::PropertiesContainer &propertiesContainer)
 Add a new container of properties in the list. Add containers in order from the most global one to the most local one.
 
bool Has (const gd::String &name) const
 Return true if the specified property is in one of the containers.
 
std::pair< std::reference_wrapper< const gd::PropertiesContainer >, std::reference_wrapper< const NamedPropertyDescriptor > > Get (const gd::String &name) const
 Return a reference to the property called name, and the properties container holding it.
 
bool HasPropertiesContainer (const gd::PropertiesContainer &propertiesContainer) const
 Return true if the specified properties container is present.
 
const PropertiesContainerGetBottomMostPropertiesContainer () const
 
void ForEachPropertyMatchingSearch (const gd::String &search, std::function< void(const gd::NamedPropertyDescriptor &property)> fn) const
 Call the callback for each property having a name matching the specified search.
 
 PropertiesContainersList ()
 

Static Public Member Functions

static PropertiesContainersList MakeNewPropertiesContainersListFor (const gd::PropertiesContainer &propertiesContainer)
 
static PropertiesContainersList MakeNewEmptyPropertiesContainersList ()
 

Detailed Description

A list of property containers, useful for accessing properties in a scoped way.

See also
gd::NamedPropertyDescriptor
gd::Project
gd::Layout

Constructor & Destructor Documentation

◆ PropertiesContainersList()

gd::PropertiesContainersList::PropertiesContainersList ( )
inline

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

Member Function Documentation

◆ GetBottomMostPropertiesContainer()

const PropertiesContainer* gd::PropertiesContainersList::GetBottomMostPropertiesContainer ( ) const
inline

Get the properties container at the bottom of the scope (so the most "local" one).


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