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

Represents a behavior or an object that is implemented with events. More...

#include <AbstractEventsBasedEntity.h>

Inherited by gd::EventsBasedBehavior, and gd::EventsBasedObject.

Public Member Functions

 AbstractEventsBasedEntity (const gd::String &_name, gd::EventsFunctionsContainer::FunctionOwner functionContainerSource)
 
AbstractEventsBasedEntityClone () const
 Return a pointer to a new AbstractEventsBasedEntity constructed from this one.
 
const gd::StringGetDescription () const
 Get the description of the behavior or object, that is displayed in the editor.
 
virtual AbstractEventsBasedEntitySetDescription (const gd::String &description_)
 Set the description of the behavior or object, to be displayed in the editor.
 
const gd::StringGetName () const
 Get the internal name of the behavior or object.
 
AbstractEventsBasedEntitySetName (const gd::String &name_)
 Set the internal name of the behavior or object.
 
const gd::StringGetFullName () const
 Get the name of the behavior or object, that is displayed in the editor.
 
AbstractEventsBasedEntitySetFullName (const gd::String &fullName_)
 Set the name of the behavior or object, to be displayed in the editor.
 
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.
 
gd::PropertiesContainerGetPropertyDescriptors ()
 Return a reference to the list of the properties.
 
const gd::PropertiesContainerGetPropertyDescriptors () const
 Return a const reference to the list of the properties.
 
Serialization
virtual void SerializeTo (gd::SerializerElement &element) const
 Serialize the AbstractEventsBasedEntity to the specified element.
 
virtual void UnserializeFrom (gd::Project &project, const gd::SerializerElement &element)
 Load the AbstractEventsBasedEntity from the specified element.
 

Static Public Member Functions

static gd::String GetPropertyActionName (const gd::String &propertyName)
 Get the name of the action to change a property.
 
static gd::String GetPropertyConditionName (const gd::String &propertyName)
 Get the name of the condition to compare a property.
 
static gd::String GetPropertyExpressionName (const gd::String &propertyName)
 Get the name of the expression to get a property.
 
static gd::String GetPropertyToggleActionName (const gd::String &propertyName)
 Get the name of the action to toggle a boolean property.
 

Detailed Description

Represents a behavior or an object that is implemented with events.

It's the responsibility of the IDE to run the logic to transform this into a real behavior or object, by declaring an extension and running code generation. See EventsFunctionsExtensionsLoader.


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