GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Events that can be generated as a stand-alone function, and used as a condition, action or expression. More...
#include <EventsFunction.h>
Public Types | |
enum | FunctionType { Action , Condition , Expression , ExpressionAndCondition , ActionWithOperator } |
Public Member Functions | |
EventsFunction * | Clone () const |
Return a pointer to a new EventsFunction constructed from this one. | |
const gd::String & | GetDescription () const |
Get the description of the function, that is displayed in the editor. | |
EventsFunction & | SetDescription (const gd::String &description_) |
Set the description of the function, to be displayed in the editor. | |
const gd::String & | GetName () const |
Get the name of the function, to be used for the action/condition/expression name. | |
EventsFunction & | SetName (const gd::String &name_) |
Set the name of the function, to be used for the action/condition/expression name. | |
const gd::String & | GetFullName () const |
Get the name of the function, that is displayed in the editor. | |
EventsFunction & | SetFullName (const gd::String &fullName_) |
Set the name of the function, to be displayed in the editor. | |
const gd::String & | GetSentence () const |
Get the sentence of the function, that is used for the condition/action in the Events Editor. | |
EventsFunction & | SetSentence (const gd::String &sentence_) |
Set the sentence of the function, to be used for the condition/action in the Events Editor. | |
const gd::String & | GetGroup () const |
Get the group of the instruction in the editor. | |
EventsFunction & | SetGroup (const gd::String &group_) |
Set the group of the instruction in the editor. | |
const gd::String & | GetGetterName () const |
Get the name of the ExpressionAndCondition to use as an operand that is defined in the editor. | |
EventsFunction & | SetGetterName (const gd::String &getterName_) |
Set the name of the ExpressionAndCondition to use as an operand that is defined in the editor. | |
EventsFunction & | SetExpressionType (const gd::ValueTypeMetadata &type) |
Set the type of the expression. | |
const gd::ValueTypeMetadata & | GetExpressionType () const |
Get the type of the expression. | |
gd::ValueTypeMetadata & | GetExpressionType () |
Get the type of the expression. | |
EventsFunction & | SetFunctionType (FunctionType type) |
Set the type of the function. | |
FunctionType | GetFunctionType () const |
Get the type of the function. | |
bool | IsAction () const |
Return true if the function is an action. | |
bool | IsExpression () const |
Return true if the function is an expression. More... | |
bool | IsCondition () const |
Return true if the function is a condition. More... | |
bool | IsPrivate () const |
Returns true if the function is private. | |
EventsFunction & | SetPrivate (bool _isPrivate) |
Sets the privateness of the function. | |
bool | IsAsync () const |
Returns true if the function is async. | |
EventsFunction & | SetAsync (bool _isAsync) |
Sets the asynchronicity of the function. | |
const gd::EventsList & | GetEvents () const |
Return the events. | |
gd::EventsList & | GetEvents () |
Return the events. | |
const gd::ParameterMetadataContainer & | GetParametersForEvents (const gd::EventsFunctionsContainer &functionsContainer) const |
Return the parameters of the function that are used in the events. More... | |
const ParameterMetadataContainer & | GetParameters () const |
Return the parameters of the function that are filled in the editor. More... | |
ParameterMetadataContainer & | GetParameters () |
Return the parameters. | |
ObjectGroupsContainer & | GetObjectGroups () |
Return a reference to the object groups that can be used in the function. | |
const ObjectGroupsContainer & | GetObjectGroups () const |
Return a const reference to the object groups that can be used in the function. | |
Serialization | |
void | SerializeTo (gd::SerializerElement &element) const |
Serialize the EventsFunction to the specified element. | |
void | UnserializeFrom (gd::Project &project, const gd::SerializerElement &element) |
Load the EventsFunction from the specified element. | |
Events that can be generated as a stand-alone function, and used as a condition, action or expression.
|
inline |
Return the parameters of the function that are filled in the editor.
const gd::ParameterMetadataContainer & gd::EventsFunction::GetParametersForEvents | ( | const gd::EventsFunctionsContainer & | functionsContainer | ) | const |
Return the parameters of the function that are used in the events.
|
inline |
Return true if the function is a condition.
Note that a function can be both an expression and a condition.
|
inline |
Return true if the function is an expression.
Note that a function can be both an expression and a condition.