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

Perform a search over a project or a layout, searching for layout, global or object variables. More...

#include <EventsVariablesFinder.h>

Static Public Member Functions

static std::set< gd::StringFindAllGlobalVariables (const gd::Platform &platform, const gd::Project &project)
 
static std::set< gd::StringFindAllLayoutVariables (const gd::Platform &platform, const gd::Project &project, const gd::Layout &layout)
 
static std::set< gd::StringFindAllObjectVariables (const gd::Platform &platform, const gd::Project &project, const gd::Layout &layout, const gd::String &objectName)
 

Detailed Description

Perform a search over a project or a layout, searching for layout, global or object variables.

Todo:
Rework this class to return the shapes (maybe even types?) of the variables (in particular for structures and arrays), so we can use this for better autocompletions in the variables dialogs in the IDE.

Member Function Documentation

◆ FindAllGlobalVariables()

std::set< gd::String > gd::EventsVariablesFinder::FindAllGlobalVariables ( const gd::Platform platform,
const gd::Project project 
)
static

Construct a list containing the name of all global variables used in the project.

Parameters
projectThe project to be scanned
Returns
A std::set containing the names of all global variables used

◆ FindAllLayoutVariables()

std::set< gd::String > gd::EventsVariablesFinder::FindAllLayoutVariables ( const gd::Platform platform,
const gd::Project project,
const gd::Layout layout 
)
static

Construct a list containing the name of all layout variables used in the layout.

Parameters
projectThe project
layoutThe layout to be scanned
Returns
A std::set containing the names of all layout variables used.

◆ FindAllObjectVariables()

std::set< gd::String > gd::EventsVariablesFinder::FindAllObjectVariables ( const gd::Platform platform,
const gd::Project project,
const gd::Layout layout,
const gd::String objectName 
)
static

Construct a list containing the name of all object variables used in the layout.

Parameters
projectThe project
layoutThe layout to use.
objectNameThe name of the object to be scanned
Returns
A std::set containing the names of all object variables used.

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