![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Hold a list of Events Functions (gd::EventsFunction) and Events Based Behaviors. More...
#include <EventsFunctionsExtension.h>
Public Member Functions | |
EventsFunctionsExtension (const EventsFunctionsExtension &) | |
EventsFunctionsExtension & | operator= (const EventsFunctionsExtension &rhs) |
EventsFunctionsExtension * | Clone () const |
Return a pointer to a new EventsFunctionsExtension constructed from this one. | |
const gd::String & | GetVersion () const |
EventsFunctionsExtension & | SetVersion (const gd::String &version_) |
const gd::String & | GetNamespace () const |
EventsFunctionsExtension & | SetNamespace (const gd::String &namespace_) |
const gd::String & | GetShortDescription () const |
EventsFunctionsExtension & | SetShortDescription (const gd::String &shortDescription_) |
const gd::String & | GetDescription () const |
EventsFunctionsExtension & | SetDescription (const gd::String &description_) |
const gd::String & | GetName () const |
EventsFunctionsExtension & | SetName (const gd::String &name_) |
const gd::String & | GetFullName () const |
EventsFunctionsExtension & | SetFullName (const gd::String &fullName_) |
const gd::String & | GetCategory () const |
EventsFunctionsExtension & | SetCategory (const gd::String &category_) |
const std::vector< gd::String > & | GetTags () const |
std::vector< gd::String > & | GetTags () |
const std::vector< gd::String > & | GetAuthorIds () const |
std::vector< gd::String > & | GetAuthorIds () |
const gd::String & | GetAuthor () const |
EventsFunctionsExtension & | SetAuthor (const gd::String &author_) |
const gd::String & | GetPreviewIconUrl () const |
EventsFunctionsExtension & | SetPreviewIconUrl (const gd::String &previewIconUrl_) |
const gd::String & | GetIconUrl () const |
EventsFunctionsExtension & | SetIconUrl (const gd::String &iconUrl_) |
const gd::String & | GetHelpPath () const |
Get the help path of this extension, relative to the GDevelop documentation root. | |
EventsFunctionsExtension & | SetHelpPath (const gd::String &helpPath_) |
Set the help path of this extension, relative to the GDevelop documentation root. | |
const gd::String & | GetGDevelopVersion () const |
Get the GDevelop version required by this extension. | |
EventsFunctionsExtension & | SetGDevelopVersion (const gd::String &gdevelopVersion_) |
Set the GDevelop version required by this extension. | |
gd::SerializableWithNameList< EventsBasedBehavior > & | GetEventsBasedBehaviors () |
Return a reference to the list of the events based behaviors. | |
const gd::SerializableWithNameList< EventsBasedBehavior > & | GetEventsBasedBehaviors () const |
Return a const reference to the list of the events based behaviors. | |
gd::SerializableWithNameList< EventsBasedObject > & | GetEventsBasedObjects () |
Return a reference to the list of the events based objects. | |
const gd::SerializableWithNameList< EventsBasedObject > & | GetEventsBasedObjects () const |
Return a const reference to the list of the events based objects. | |
virtual void | SetOrigin (const gd::String &originName_, const gd::String &originIdentifier_) |
Sets an extension origin. This method is not present since the beginning so the projects created before that will have extensions installed from the store without an origin. Keep that in mind when creating features that rely on an extension's origin. | |
virtual const gd::String & | GetOriginName () const |
virtual const gd::String & | GetOriginIdentifier () const |
EventsFunctionsContainer & | GetEventsFunctions () |
Return a reference to the functions of the events based behavior or object. | |
const EventsFunctionsContainer & | GetEventsFunctions () const |
Return a const reference to the functions of the events based behavior or object. | |
Dependencies | |
gd::DependencyMetadata & | AddDependency () |
Adds a new dependency. | |
void | RemoveDependencyAt (size_t index) |
Adds a new dependency. | |
std::vector< gd::DependencyMetadata > & | GetAllDependencies () |
Returns the list of dependencies. | |
const std::vector< gd::DependencyMetadata > & | GetAllDependencies () const |
Returns the list of dependencies. | |
Variable management | |
Members functions related to layout variables management. | |
const gd::VariablesContainer & | GetGlobalVariables () const |
gd::VariablesContainer & | GetGlobalVariables () |
const gd::VariablesContainer & | GetSceneVariables () const |
gd::VariablesContainer & | GetSceneVariables () |
Serialization | |
void | SerializeTo (gd::SerializerElement &element) const |
Serialize the EventsFunctionsExtension to the specified element. | |
void | UnserializeFrom (gd::Project &project, const gd::SerializerElement &element) |
Load the EventsFunctionsExtension from the specified element. | |
void | UnserializeExtensionDeclarationFrom (gd::Project &project, const gd::SerializerElement &element) |
Load the extension without free functions, behaviors and objects implementation. | |
void | UnserializeExtensionImplementationFrom (gd::Project &project, const gd::SerializerElement &element) |
Load free functions, behaviors and objects implementation (in opposition to load just their "declaration" by reading their name). | |
Source files | |
gd::SourceFileMetadata & | AddSourceFile () |
Adds a new source file. | |
void | RemoveSourceFileAt (size_t index) |
Removes a source file. | |
std::vector< gd::SourceFileMetadata > & | GetAllSourceFiles () |
Returns the list of source files. | |
const std::vector< gd::SourceFileMetadata > & | GetAllSourceFiles () const |
Returns the list of source files. | |
Static Public Member Functions | |
Lifecycle event functions | |
static bool | IsExtensionLifecycleEventsFunction (const gd::String &eventsFunctionName) |
Hold a list of Events Functions (gd::EventsFunction) and Events Based Behaviors.
Events functions can be generated as stand-alone functions, and converted to actions/conditions/expressions. Events behaviors can be generated to a runtime behavior, with functions converted to behavior actions/conditions/expressions. Similarly, a gd::EventsFunctionsExtension can be converted to an extension.
|
inline |
Return the global variables of the extension (variables scoped to the entire game lifetime).
|
inline |
Return the global variables of the extension (variables scoped to the entire game lifetime).
|
inline |
Return the global variables of the extension (variables scoped to the lifetime of a scene).
|
inline |
Return the global variables of the extension (variables scoped to the lifetime of a scene).