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 | Static Public Member Functions | List of all members
gd::EventsBasedBehavior Class Reference

Represents a behavior that is implemented with events. More...

#include <EventsBasedBehavior.h>

Public Member Functions

EventsBasedBehaviorClone () const
 Return a pointer to a new EventsBasedBehavior constructed from this one.
 
const gd::StringGetDescription () const
 Get the description of the behavior, that is displayed in the editor.
 
EventsBasedBehaviorSetDescription (const gd::String &description_)
 Set the description of the behavior, to be displayed in the editor.
 
const gd::StringGetName () const
 Get the internal name of the behavior.
 
EventsBasedBehaviorSetName (const gd::String &name_)
 Set the internal name of the behavior.
 
const gd::StringGetFullName () const
 Get the name of the behavior, that is displayed in the editor.
 
EventsBasedBehaviorSetFullName (const gd::String &fullName_)
 Set the name of the behavior, to be displayed in the editor.
 
const gd::StringGetObjectType () const
 Get the object type the behavior should be used with.
 
EventsBasedBehaviorSetObjectType (const gd::String &objectType_)
 Set the object type the behavior should be used with.
 
EventsFunctionsContainerGetEventsFunctions ()
 Return a reference to the functions of the events based behavior.
 
const EventsFunctionsContainerGetEventsFunctions () const
 Return a const reference to the functions of the events based behavior.
 
SerializableWithNameList
< NamedPropertyDescriptor > & 
GetPropertyDescriptors ()
 Return a reference to the list of the properties.
 
const SerializableWithNameList
< NamedPropertyDescriptor > & 
GetPropertyDescriptors () const
 Return a const reference to the list of the properties.
 
Serialization
void SerializeTo (gd::SerializerElement &element) const
 Serialize the EventsBasedBehavior to the specified element.
 
void UnserializeFrom (gd::Project &project, const gd::SerializerElement &element)
 Load the EventsBasedBehavior 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.
 

Detailed Description

Represents a behavior that is implemented with events.

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


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