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

Compute the dependencies of a scene or external events. More...

#include <DependenciesAnalyzer.h>

Public Member Functions

 DependenciesAnalyzer (const gd::Project &project_, const gd::Layout &layout_)
 Constructor for analyzing the dependencies of a layout.
 
 DependenciesAnalyzer (const gd::Project &project_, const gd::ExternalEvents &externalEvents)
 Constructor for analyzing the dependencies of external events.
 
bool Analyze ()
 Search the dependencies and return true if there are no circular dependencies in the events of the layout or external events passed in the constructor. More...
 
const std::set< gd::String > & GetScenesDependencies () const
 Return the scenes being dependencies of the scene or external events passed in the constructor.
 
const std::set< gd::String > & GetExternalEventsDependencies () const
 Return the external events being dependencies of the scene or external events passed in the constructor.
 

Detailed Description

Compute the dependencies of a scene or external events.

Member Function Documentation

◆ Analyze()

bool DependenciesAnalyzer::Analyze ( )

Search the dependencies and return true if there are no circular dependencies in the events of the layout or external events passed in the constructor.

Returns
true if there are no circular dependencies, false otherwise (in this case, no events code generation must done).

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