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

Hold a list of Events Functions (gd::EventsFunction) and Events Based Behaviors. More...

#include <EventsFunctionsExtension.h>

Public Member Functions

 EventsFunctionsExtension (const EventsFunctionsExtension &)
 
EventsFunctionsExtensionoperator= (const EventsFunctionsExtension &rhs)
 
EventsFunctionsExtensionClone () const
 Return a pointer to a new EventsFunctionsExtension constructed from this one.
 
const gd::StringGetVersion () const
 
EventsFunctionsExtensionSetVersion (const gd::String &version_)
 
const gd::StringGetNamespace () const
 
EventsFunctionsExtensionSetNamespace (const gd::String &namespace_)
 
const gd::StringGetShortDescription () const
 
EventsFunctionsExtensionSetShortDescription (const gd::String &shortDescription_)
 
const gd::StringGetDescription () const
 
EventsFunctionsExtensionSetDescription (const gd::String &description_)
 
const gd::StringGetName () const
 
EventsFunctionsExtensionSetName (const gd::String &name_)
 
const gd::StringGetFullName () const
 
EventsFunctionsExtensionSetFullName (const gd::String &fullName_)
 
const gd::StringGetCategory () const
 
EventsFunctionsExtensionSetCategory (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::StringGetAuthor () const
 
EventsFunctionsExtensionSetAuthor (const gd::String &author_)
 
const gd::StringGetPreviewIconUrl () const
 
EventsFunctionsExtensionSetPreviewIconUrl (const gd::String &previewIconUrl_)
 
const gd::StringGetIconUrl () const
 
EventsFunctionsExtensionSetIconUrl (const gd::String &iconUrl_)
 
const gd::StringGetHelpPath () const
 Get the help path of this extension, relative to the GDevelop documentation root.
 
EventsFunctionsExtensionSetHelpPath (const gd::String &helpPath_)
 Set the help path of this extension, relative to the GDevelop documentation root.
 
const gd::StringGetGDevelopVersion () const
 Get the GDevelop version required by this extension.
 
EventsFunctionsExtensionSetGDevelopVersion (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::StringGetOriginName () const
 
virtual const gd::StringGetOriginIdentifier () const
 
EventsFunctionsContainerGetEventsFunctions ()
 Return a reference to the functions of the events based behavior or object.
 
const EventsFunctionsContainerGetEventsFunctions () const
 Return a const reference to the functions of the events based behavior or object.
 
Dependencies
gd::DependencyMetadataAddDependency ()
 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::VariablesContainerGetGlobalVariables () const
 
gd::VariablesContainerGetGlobalVariables ()
 
const gd::VariablesContainerGetSceneVariables () const
 
gd::VariablesContainerGetSceneVariables ()
 
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::SourceFileMetadataAddSourceFile ()
 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)
 

Detailed Description

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.

Member Function Documentation

◆ GetGlobalVariables() [1/2]

gd::VariablesContainer& gd::EventsFunctionsExtension::GetGlobalVariables ( )
inline

Return the global variables of the extension (variables scoped to the entire game lifetime).

◆ GetGlobalVariables() [2/2]

const gd::VariablesContainer& gd::EventsFunctionsExtension::GetGlobalVariables ( ) const
inline

Return the global variables of the extension (variables scoped to the entire game lifetime).

◆ GetSceneVariables() [1/2]

gd::VariablesContainer& gd::EventsFunctionsExtension::GetSceneVariables ( )
inline

Return the global variables of the extension (variables scoped to the lifetime of a scene).

◆ GetSceneVariables() [2/2]

const gd::VariablesContainer& gd::EventsFunctionsExtension::GetSceneVariables ( ) const
inline

Return the global variables of the extension (variables scoped to the lifetime of a scene).


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