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

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::Object &object)
 

Detailed Description

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

Todo:
Refactor this class using ArbitraryEventsWorker

Member Function Documentation

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
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.
std::set< gd::String > gd::EventsVariablesFinder::FindAllObjectVariables ( const gd::Platform platform,
const gd::Project project,
const gd::Layout layout,
const gd::Object object 
)
static

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

Parameters
projectThe project
layoutThe layout to use.
objectThe 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: