GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
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) | |
AbstractEventsBasedEntity * | Clone () const |
Return a pointer to a new AbstractEventsBasedEntity constructed from this one. | |
const gd::String & | GetDescription () const |
Get the description of the behavior or object, that is displayed in the editor. | |
virtual AbstractEventsBasedEntity & | SetDescription (const gd::String &description_) |
Set the description of the behavior or object, to be displayed in the editor. | |
const gd::String & | GetName () const |
Get the internal name of the behavior or object. | |
AbstractEventsBasedEntity & | SetName (const gd::String &name_) |
Set the internal name of the behavior or object. | |
const gd::String & | GetFullName () const |
Get the name of the behavior or object, that is displayed in the editor. | |
AbstractEventsBasedEntity & | SetFullName (const gd::String &fullName_) |
Set the name of the behavior or object, to be displayed in the editor. | |
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. | |
gd::PropertiesContainer & | GetPropertyDescriptors () |
Return a reference to the list of the properties. | |
const gd::PropertiesContainer & | GetPropertyDescriptors () 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. | |
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
.