GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
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 PropertiesContainer * | GetBottomMostPropertiesContainer () 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 () |
A list of property containers, useful for accessing properties in a scoped way.
|
inline |
Do not use - should be private but accessible to let Emscripten create a temporary.
|
inline |
Get the properties container at the bottom of the scope (so the most "local" one).