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

Static Public Member Functions

static void UnfoldWhenContaining (gd::EventsList &list, const gd::BaseEvent &eventToContain)
 Recursively unfold all the event lists containing the specified event. More...
 
static void FoldAll (gd::EventsList &list)
 
static void UnfoldToLevel (gd::EventsList &list, const int8_t maxLevel, const std::size_t currentLevel=0)
 Recursively unfold all the events until a certain level of depth. 0 is the top level. If you want to unfold all events regardless of its depth, use maxLevel = -1. currentLevel is used for the recursion.
 

Member Function Documentation

◆ UnfoldWhenContaining()

static void EventsListUnfolder::UnfoldWhenContaining ( gd::EventsList list,
const gd::BaseEvent eventToContain 
)
inlinestatic

Recursively unfold all the event lists containing the specified event.

Note
This is a quick and naive implementation, complexity is pretty high.

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