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

Class containing functions to do refactoring tasks on events. More...

#include <EventsRefactorer.h>

Static Public Member Functions

static void RenameObjectInEvents (const gd::Platform &platform, gd::ObjectsContainer &project, gd::ObjectsContainer &layout, gd::EventsList &events, gd::String oldName, gd::String newName)
 
static void RemoveObjectInEvents (const gd::Platform &platform, gd::ObjectsContainer &project, gd::ObjectsContainer &layout, gd::EventsList &events, gd::String name)
 
static std::vector
< EventsSearchResult
SearchInEvents (gd::ObjectsContainer &project, gd::ObjectsContainer &layout, gd::EventsList &events, gd::String search, bool matchCase, bool inConditions, bool inActions, bool inEventStrings)
 
static void ReplaceStringInEvents (gd::ObjectsContainer &project, gd::ObjectsContainer &layout, gd::EventsList &events, gd::String toReplace, gd::String newString, bool matchCase, bool inConditions, bool inActions)
 

Detailed Description

Class containing functions to do refactoring tasks on events.

Class containing functions to do refactoring tasks on events like changing an object name, deleting an object...

Todo:
Refactor this class using ArbitraryEventsWorker!

Member Function Documentation

void gd::EventsRefactorer::RemoveObjectInEvents ( const gd::Platform platform,
gd::ObjectsContainer project,
gd::ObjectsContainer layout,
gd::EventsList events,
gd::String  name 
)
static

Remove all actions or conditions using an object

void gd::EventsRefactorer::RenameObjectInEvents ( const gd::Platform platform,
gd::ObjectsContainer project,
gd::ObjectsContainer layout,
gd::EventsList events,
gd::String  oldName,
gd::String  newName 
)
static

Replace all occurences of an object name by another name ( include : objects in parameters and in math/text expressions of all events ).

void gd::EventsRefactorer::ReplaceStringInEvents ( gd::ObjectsContainer project,
gd::ObjectsContainer layout,
gd::EventsList events,
gd::String  toReplace,
gd::String  newString,
bool  matchCase,
bool  inConditions,
bool  inActions 
)
static

Replace all occurrences of a gd::String in events

vector< EventsSearchResult > gd::EventsRefactorer::SearchInEvents ( gd::ObjectsContainer project,
gd::ObjectsContainer layout,
gd::EventsList events,
gd::String  search,
bool  matchCase,
bool  inConditions,
bool  inActions,
bool  inEventStrings 
)
static

Search for a gd::String in events

Returns
A vector containing EventsSearchResult objects filled with events containing the string

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