![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Contains information about a dependency (library, npm/cordova package, or other according to the export) of an extension. More...
#include <DependencyMetadata.h>
Public Member Functions | |
DependencyMetadata & | SetName (const gd::String &name_) |
Sets the name shown to users. | |
DependencyMetadata & | SetExportName (const gd::String &exportName_) |
DependencyMetadata & | SetVersion (const gd::String &version_) |
Set the version of the dependency to install. Use an empty string to use the latest version. | |
DependencyMetadata & | SetDependencyType (const gd::String &dependencyType_) |
Sets the type of dependecy (what will be used to install it) More... | |
DependencyMetadata & | SetExtraSetting (const gd::String &settingName, const gd::PropertyDescriptor &settingValue) |
Sets a dependency type specific setting. | |
DependencyMetadata & | OnlyIfExtraSettingIsNonEmpty (const gd::String &settingName) |
Mark the dependency to be included in the export only if the specified setting is not empty. More... | |
const std::set< gd::String > & | GetRequiredExtraSettingsForExport () const |
Get the list of extra settings that must be fulfilled for the dependency to be exported. | |
const gd::String & | GetName () const |
const gd::String & | GetExportName () const |
const gd::String & | GetVersion () const |
const gd::String & | GetDependencyType () const |
const std::map< gd::String, gd::PropertyDescriptor > & | GetAllExtraSettings () const |
Contains information about a dependency (library, npm/cordova package, or other according to the export) of an extension.
|
inline |
Mark the dependency to be included in the export only if the specified setting is not empty.
If this is called for multiple settings, all settings must be fulfilled for the dependency to be exported.
|
inline |
Sets the type of dependecy (what will be used to install it)
This can either be "npm" or "cordova" for now.