GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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>

Inherits gd::EventsFunctionsContainer.

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::StringGetTags () const
 
EventsFunctionsExtensionSetTags (const gd::String &tags_)
 
const gd::StringGetAuthor () const
 
EventsFunctionsExtensionSetAuthor (const gd::String &author_)
 
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.
 
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.
 
- Public Member Functions inherited from gd::EventsFunctionsContainer
bool HasEventsFunctionNamed (const gd::String &name) const
 Check if the function with the specified name exists.
 
gd::EventsFunctionGetEventsFunction (const gd::String &name)
 Get the function with the specified name. More...
 
const gd::EventsFunctionGetEventsFunction (const gd::String &name) const
 Get the function with the specified name. More...
 
gd::EventsFunctionGetEventsFunction (std::size_t index)
 Get the function at the specified index in the list. More...
 
const gd::EventsFunctionGetEventsFunction (std::size_t index) const
 Get the function at the specified index in the list. More...
 
std::size_t GetEventsFunctionsCount () const
 Return the number of functions.
 
gd::EventsFunctionInsertNewEventsFunction (const gd::String &name, std::size_t position)
 
gd::EventsFunctionInsertEventsFunction (const gd::EventsFunction &object, std::size_t position)
 
void RemoveEventsFunction (const gd::String &name)
 
void MoveEventsFunction (std::size_t oldIndex, std::size_t newIndex)
 
std::size_t GetEventsFunctionPosition (const gd::EventsFunction &eventsFunction)
 
const std::vector
< std::unique_ptr
< gd::EventsFunction > > & 
GetInternalVector () const
 Provide a raw access to the vector containing the functions.
 
std::vector< std::unique_ptr
< gd::EventsFunction > > & 
GetInternalVector ()
 Provide a raw access to the vector containing the functions.
 
void SerializeEventsFunctionsTo (SerializerElement &element) const
 Serialize events functions.
 
void UnserializeEventsFunctionsFrom (gd::Project &project, const SerializerElement &element)
 Unserialize the events functions.
 

Additional Inherited Members

- Protected Member Functions inherited from gd::EventsFunctionsContainer
void Init (const gd::EventsFunctionsContainer &other)
 

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.


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